From: Eric Blake <eblake@redhat.com>
To: Li Zhang <zhlcindy@gmail.com>
Cc: libvir-list@redhat.com, aik@au1.ibm.com,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
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 [thread overview]
Message-ID: <5345462E.4090301@redhat.com> (raw)
In-Reply-To: <5344DC5C.1020300@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1826 bytes --]
[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 <zhlcindy@linux.vnet.ibm.com>
>>>
>>> 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 <zhlcindy@linux.vnet.ibm.com>
>>> ---
>>> 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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
parent reply other threads:[~2014-04-09 13:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <5344DC5C.1020300@gmail.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5345462E.4090301@redhat.com \
--to=eblake@redhat.com \
--cc=aik@au1.ibm.com \
--cc=libvir-list@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=zhlcindy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.