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

Jiri Denemark jdenemar at redhat.com
Thu Feb 28 11:39:13 UTC 2013


On Thu, Feb 28, 2013 at 10:39:56 +0800, Li Zhang wrote:
> On Thu, Feb 28, 2013 at 10:06 AM, Li Zhang <zhlcindy at gmail.com> wrote:
> 
> > I also hope that QEMU capabilities depend on the binary by QMP.
> > But the flags in virQEMUCapsObjectTypes are all set in virQEMUCapsInitQMP.
> >
> > virQEMUCapsInitQMP -> virQEMUCapsProbeQMPObjects ->
> >                                   virQEMUCapsProcessStringFlags(qemuCaps,
> >
> > ARRAY_CARDINALITY(virQEMUCapsObjectTypes),
> >                                   virQEMUCapsObjectTypes,
> >                                   nvalues, values);

Yes, but that's fine, virQEMUCapsObjectTypes is just a lookup table
between qom objects and our internal qemu capabilities flags.
virQEMUCapsProcessStringFlags will only set flags corresponding to the
qom objects reported by qemu.

> More information from QEMU:
> 
> 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.

Jirka




More information about the libvir-list mailing list