From: Simon Horman Subject: Re: [Xen-changelog] [xen-unstable] xend: hot-plug PCI devices at boot-time Date: Tue, 2 Jun 2009 21:18:44 +1000 Message-ID: <20090602111844.GA23179@verge.net.au> References: <200905300930.n4U9UOTG008828@xenbits.xensource.com> <20090602051600.GA22478@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Cui, Dexuan" Cc: "xen-devel@lists.xensource.com" , Masaki Kanno List-Id: xen-devel@lists.xenproject.org On Tue, Jun 02, 2009 at 04:38:17PM +0800, Cui, Dexuan wrote: > Simon Horman wrote: > > On Tue, Jun 02, 2009 at 01:05:16PM +0800, Cui, Dexuan wrote: [snip] > >> BTW, there is another bug with guest hotplug: > >> After I create a guest without assigning any device to it, I can 'xm > >> pci-attach' a device into the guest, but "xm pci-list" doesn't show > >> the vslot info. Looks this issue is originally introduced by c/s > >> 19510. Can you and Masaki Kanno have a look? > > > > Yes, of course, I will look into it. > > > > Which revisions of xen-unstable.hg and qemu-xen-unstable.git are you > > using? > I'm using the latest xen c/s 19696 and ioemu 72f4654095e0ac1539749b628e98f5e1569c9801 plus applying your patch manually now and can still reproduce it. Are you booting an HVM domain? I am not able to see this problem with the config below and running the following commands to attach a device: $ xm pci-list debian $ xm pci-attach debian 01:00.0 $ xm pci-list debian domain bus slot func 0x0000 0x01 0x00 0x0 -------------------------------------- import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' kernel = "/usr/lib/xen/boot/hvmloader" builder='hvm' memory = 128 name = "debian" disk = [ 'file:/home/horms/projects/xen/media/debian-unstable.disk,hda,w', 'file:/home/horms/projects/xen/media/debian-unstable-mini.iso,hdc:cdrom,r' ] boot='c' device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' sdl=0 opengl=0 vnc=1 vnclisten="0.0.0.0" vncunused=1 nographic=0 stdvga=0 serial='pty'