Mark McLoughlin
73c901a807
Take domain type into account when looking up default machine
...
If one has e.g.
<guest>
<os_type>hvm</os_type>
<arch name='x86_64'>
<wordsize>64</wordsize>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<machine>pc-0.11</machine>
<machine canonical='pc-0.11'>pc</machine>
<machine>pc-0.10</machine>
<machine>isapc</machine>
<domain type='qemu'>
</domain>
<domain type='kvm'>
<emulator>/usr/bin/kvm</emulator>
<machine>pc</machine>
<machine>isapc</machine>
</domain>
</arch>
</guest>
and start a guest with:
<domain type='kvm'>
...
<os>
<type arch='x86_64'>hvm</type>
...
</os>
</domain>
then the default machine type should be 'pc' and not 'pc-0.11'
Issue was reported by Anton Protopopov.
* src/capabilities.[ch]: pass the domain type to
virCapabilitiesDefaultGuestArch() and use it to look up the default
machine type from a specific guest domain if needed.
* src/conf/domain_conf.c, src/xen/xm_internal.c: update
* tests/qemuxml2argvdata/qemuxml2argv-machine-aliases2.xml: update
the domain type to 'kvm' and remove the machine type to check
that the default gets looked up correctly
2009-10-12 10:57:35 +01:00
..
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-09-22 16:13:33 +01:00
2009-05-21 14:22:51 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2009-05-21 14:22:51 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-07-11 09:56:23 +00:00
2009-07-09 20:04:09 +01:00
2008-07-11 09:56:23 +00:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:15:39 +00:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:15:39 +00:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:15:39 +00:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:15:39 +00:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:15:39 +00:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:15:39 +00:00
2009-07-09 20:04:09 +01:00
2009-01-23 16:22:20 +00:00
2009-09-03 13:53:34 +01:00
2009-09-03 13:53:34 +01:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-08-08 15:03:00 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-15 16:05:41 +00:00
2009-07-09 20:04:09 +01:00
2009-07-08 13:40:32 +01:00
2009-07-09 20:04:09 +01:00
2009-07-08 13:40:32 +01:00
2009-09-29 17:15:52 +01:00
2009-07-08 13:40:32 +01:00
2009-09-29 17:15:52 +01:00
2009-07-08 13:40:32 +01:00
2009-09-29 17:15:52 +01:00
2009-07-08 13:40:32 +01:00
2009-07-09 20:04:09 +01:00
2009-05-21 14:22:51 +00:00
2009-07-09 20:04:09 +01:00
2009-03-02 16:40:30 +00:00
2009-07-09 20:04:09 +01:00
2009-06-16 18:46:06 +00:00
2009-09-03 13:51:55 +01:00
2009-09-03 13:51:55 +01:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-09-29 17:15:52 +01:00
2009-07-08 13:40:32 +01:00
2009-09-10 12:37:42 +01:00
2009-09-10 12:37:42 +01:00
2009-09-10 12:37:43 +01:00
2009-10-12 10:57:35 +01:00
2009-07-09 20:04:09 +01:00
2009-03-20 11:44:17 +00:00
2009-07-09 20:04:09 +01:00
2008-05-22 16:27:20 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-09-22 16:13:33 +01:00
2008-11-04 22:15:30 +00:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:17:58 +00:00
2009-07-22 11:34:06 +01:00
2009-07-22 11:34:06 +01:00
2009-07-09 20:04:09 +01:00
2009-01-30 17:17:58 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2009-03-20 11:44:17 +00:00
2009-07-09 20:04:09 +01:00
2009-03-20 11:44:17 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2008-05-09 16:41:19 +00:00
2009-07-09 20:04:09 +01:00
2009-03-16 10:47:12 +00:00