[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [libvirt] [PATCH 1/1] Enable QEMU_CAPS_PCI_MULTIBUS cap
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [libvirt] [PATCH 1/1] Enable QEMU_CAPS_PCI_MULTIBUS capability for QEMU2.0 forward. |
Date: |
Wed, 09 Apr 2014 07:07:58 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
[adding qemu]
On 04/08/2014 11:36 PM, Li Zhang wrote:
> On 2014年04月09日 11:20, Eric Blake wrote:
>> On 04/08/2014 08:03 PM, Li Zhang wrote:
>>> From: Li Zhang <address@hidden>
>>>
>>> For QEMU2.0 forward version, it supports PCI multiBUS.
>>> Currently, libvirt still disables it which causes an error
>>> "Bus 'pci' not found".
>>>
>>> Signed-off-by: Li Zhang <address@hidden>
>>> ---
>>> src/qemu/qemu_capabilities.c | 3 +++
>>> 1 file changed, 3 insertions(+)
>>>
>>> diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
>>> index 2c8ec10..b49398f 100644
>>> --- a/src/qemu/qemu_capabilities.c
>>> +++ b/src/qemu/qemu_capabilities.c
>>> @@ -3019,6 +3019,9 @@ virQEMUCapsInitQMPMonitor(virQEMUCapsPtr qemuCaps,
>>> if (qemuCaps->version >= 1006000)
>>> virQEMUCapsSet(qemuCaps, QEMU_CAPS_DEVICE_VIDEO_PRIMARY);
>>> + if (qemuCaps->version >= 2000000)
>>> + virQEMUCapsSet(qemuCaps, QEMU_CAPS_PCI_MULTIBUS);
>>> +
>> This is a version number check, which is bad. Is there a QMP command we
>> can issue that gives a more reliable answer of whether the feature is
>> present?
>>
> Hi Eric,
>
> I can't find any QMP command for MULTIBUS in QEMU.
> There is only one "query-pci" to list PCI bus and devices information.
Maybe it's my fault for not being more vocal when the bus rename was
being proposed on the qemu list, but libvirt really does want a way to
probe via QMP whether the 'pci.0' (multibus) vs. 'pci' naming should be
used for a given machine. Is there an existing command we can use, or
is this something that we need to fix early on in qemu 2.1 and backport
to 2.0-stable?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [libvirt] [PATCH 1/1] Enable QEMU_CAPS_PCI_MULTIBUS capability for QEMU2.0 forward.,
Eric Blake <=