From: Wen Congyang <wency@cn.fujitsu.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org,
Avi Kivity <avi@redhat.com>, Kevin Wolf <kwolf@redhat.com>,
Anthony Liguori <anthony@codemonkey.ws>,
Isaku Yamahata <yamahata@valinux.co.jp>,
berrange@redhat.com
Subject: Re: [PATCHv2-RFC 0/2] RFC: standard pci bridge device
Date: Mon, 13 Feb 2012 17:38:26 +0800 [thread overview]
Message-ID: <4F38DA12.30406@cn.fujitsu.com> (raw)
In-Reply-To: <cover.1329124507.git.mst@redhat.com>
At 02/13/2012 05:15 PM, Michael S. Tsirkin Wrote:
> Here's a new version of the patch. It works for me.
> Deep nesting of bridges is supported.
> You need a small BIOS patch to support the OSHP method
> if you want hotplug to work. I will post this separately.
> We'd need a full ACPI driver to make hotplug work for guests
> without an SHPC driver (e.g. windows XP).
> Management support will also be needed.
>
> One small wrinkle is that the pci_addr property
> wants data in a format bus:device.function which is
> broken as guests can change bus numbers.
> For testing I used the 'addr' property which
> encodes slot*8+function#. We probably want to
> extend pci_addr in some way (e.g. :device.function ?
> Thoughts?).
What about using id+device(slot)+function to set the address?
>
> The SHPC controller supports up to 31 devices
> (out of 32 slots) so slot 0 doesn't support hotplug.
> Non hot-pluggable devices behind the bridge
> don't work currectly (we'll try to unplug them)
> so don't do this.
> For now I just blocked adding devices in slot 0,
> in the future it might be possible to add
> a non-hotpluggable device there.
>
> Example:
>
> qemu-system-x86_64 -enable-kvm -m 1G
> -drive file=/home/mst/rhel6.qcow2
> -netdev
> tap,id=foo,ifname=msttap0,script=/home/mst/ifup,downscript=no,vhost=on
> -device pci-bridge,id=bog
> -device virtio-net-pci,netdev=foo,bus=bog,addr=8
>
>
> Hot-unplug currently causes qemu to crash, this
> happens without this patch too, so I'm not worried :)
How to trigger this bug without this patch?
Thanks
Wen Congyang
>
> New since v1:
> hotplug support
>
WARNING: multiple messages have this Message-ID (diff)
From: Wen Congyang <wency@cn.fujitsu.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
kvm@vger.kernel.org, qemu-devel@nongnu.org,
Isaku Yamahata <yamahata@valinux.co.jp>,
Avi Kivity <avi@redhat.com>
Subject: Re: [Qemu-devel] [PATCHv2-RFC 0/2] RFC: standard pci bridge device
Date: Mon, 13 Feb 2012 17:38:26 +0800 [thread overview]
Message-ID: <4F38DA12.30406@cn.fujitsu.com> (raw)
In-Reply-To: <cover.1329124507.git.mst@redhat.com>
At 02/13/2012 05:15 PM, Michael S. Tsirkin Wrote:
> Here's a new version of the patch. It works for me.
> Deep nesting of bridges is supported.
> You need a small BIOS patch to support the OSHP method
> if you want hotplug to work. I will post this separately.
> We'd need a full ACPI driver to make hotplug work for guests
> without an SHPC driver (e.g. windows XP).
> Management support will also be needed.
>
> One small wrinkle is that the pci_addr property
> wants data in a format bus:device.function which is
> broken as guests can change bus numbers.
> For testing I used the 'addr' property which
> encodes slot*8+function#. We probably want to
> extend pci_addr in some way (e.g. :device.function ?
> Thoughts?).
What about using id+device(slot)+function to set the address?
>
> The SHPC controller supports up to 31 devices
> (out of 32 slots) so slot 0 doesn't support hotplug.
> Non hot-pluggable devices behind the bridge
> don't work currectly (we'll try to unplug them)
> so don't do this.
> For now I just blocked adding devices in slot 0,
> in the future it might be possible to add
> a non-hotpluggable device there.
>
> Example:
>
> qemu-system-x86_64 -enable-kvm -m 1G
> -drive file=/home/mst/rhel6.qcow2
> -netdev
> tap,id=foo,ifname=msttap0,script=/home/mst/ifup,downscript=no,vhost=on
> -device pci-bridge,id=bog
> -device virtio-net-pci,netdev=foo,bus=bog,addr=8
>
>
> Hot-unplug currently causes qemu to crash, this
> happens without this patch too, so I'm not worried :)
How to trigger this bug without this patch?
Thanks
Wen Congyang
>
> New since v1:
> hotplug support
>
next prev parent reply other threads:[~2012-02-13 9:35 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-13 9:15 [PATCHv2-RFC 0/2] RFC: standard pci bridge device Michael S. Tsirkin
2012-02-13 9:15 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-13 9:15 ` [PATCHv2-RFC 1/2] shpc: standard hot plug controller Michael S. Tsirkin
2012-02-13 9:15 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-13 10:03 ` Isaku Yamahata
2012-02-13 10:03 ` [Qemu-devel] " Isaku Yamahata
2012-02-13 11:49 ` Michael S. Tsirkin
2012-02-13 11:49 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-13 14:30 ` Isaku Yamahata
2012-02-13 14:30 ` [Qemu-devel] " Isaku Yamahata
2012-02-13 14:49 ` Michael S. Tsirkin
2012-02-13 14:49 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-17 13:20 ` Gerd Hoffmann
2012-02-17 13:20 ` [Qemu-devel] " Gerd Hoffmann
2012-02-13 9:16 ` [PATCHv2-RFC 2/2] pci: add standard bridge device Michael S. Tsirkin
2012-02-13 9:16 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-17 13:25 ` Gerd Hoffmann
2012-02-17 13:25 ` [Qemu-devel] " Gerd Hoffmann
2012-02-19 14:57 ` Michael S. Tsirkin
2012-02-19 14:57 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-19 23:44 ` Michael S. Tsirkin
2012-02-19 23:44 ` Michael S. Tsirkin
2012-02-17 13:33 ` Gerd Hoffmann
2012-02-17 13:33 ` [Qemu-devel] " Gerd Hoffmann
2012-02-20 22:40 ` Michael S. Tsirkin
2012-02-20 22:40 ` Michael S. Tsirkin
2012-02-21 8:02 ` Gerd Hoffmann
2012-02-21 8:02 ` [Qemu-devel] " Gerd Hoffmann
2012-02-13 9:33 ` [PATCH RFC] seabios: add OSHP method stub Michael S. Tsirkin
2012-02-13 9:33 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-14 0:34 ` Kevin O'Connor
2012-02-14 0:34 ` [Qemu-devel] " Kevin O'Connor
2012-02-14 0:43 ` Michael S. Tsirkin
2012-02-14 0:43 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-14 0:48 ` Kevin O'Connor
2012-02-14 0:48 ` [Qemu-devel] " Kevin O'Connor
2012-02-14 1:09 ` Michael S. Tsirkin
2012-02-14 1:09 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-14 12:49 ` Paul Brook
2012-02-14 12:49 ` [Qemu-devel] " Paul Brook
2012-02-14 13:37 ` Michael S. Tsirkin
2012-02-14 13:37 ` [Qemu-devel] " Michael S. Tsirkin
2012-02-14 13:47 ` Paul Brook
2012-02-14 13:47 ` Paul Brook
2012-02-14 14:11 ` Michael S. Tsirkin
2012-02-14 14:11 ` Michael S. Tsirkin
2012-02-29 11:25 ` [SeaBIOS] " Gerd Hoffmann
2012-02-29 11:25 ` [Qemu-devel] " Gerd Hoffmann
2012-02-13 9:38 ` Wen Congyang [this message]
2012-02-13 9:38 ` [Qemu-devel] [PATCHv2-RFC 0/2] RFC: standard pci bridge device Wen Congyang
2012-02-13 9:56 ` Michael S. Tsirkin
2012-02-13 9:56 ` [Qemu-devel] " Michael S. Tsirkin
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=4F38DA12.30406@cn.fujitsu.com \
--to=wency@cn.fujitsu.com \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=berrange@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=kwolf@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yamahata@valinux.co.jp \
/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.