[libvirt] [PATCH 1/1] Clear PIIX3/PIIX4_USB capabilities for non-X86 platforms

Jiri Denemark jdenemar at redhat.com
Thu Feb 28 11:55:56 UTC 2013


On Thu, Feb 28, 2013 at 19:47:47 +0800, Li Zhang wrote:
> On 2013年02月28日 19:39, Jiri Denemark wrote:
> >> I tried to execute  "qom-list-types" command, I get a lot of return values
> >> including X86 and other platforms.
> > I think this is the real problem. QEMU binary emulating PPC architecture
> > should not advertise x86-specific objects.
> 
> It seems that command "qom-list-types" just give all architectures' 
> list, not related with architecture.
> qemu-system-x86_64 also can get all information of other architectures.
> 
> I think it is not right way to getting capabilities by "qom-list-types".

Yeah, it's either bug in qemu or libvirt should use another way of
probing this stuff.

> To fix this problem can be either way of the following:
> 1. Specify the architectures in Libvirt as my patch.

No way. This won't work if you want to start PPC domain on an x86 host
or x86 domain on a PPC host.

> 2. Specify the architectures in QEMU by modifying "qom-list-types"
> command.

Perhaps. We definitely need to find the right way of probing the data we
care about. And it's likely both libvirt and qemu will need to be
modified.

Jirka




More information about the libvir-list mailing list