Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-26 Thread Stefano Stabellini
On Mon, 26 Mar 2012, Avi Kivity wrote: > > > What about if two BARs (from different devices) are configured for the > > > same address ranges? > > > > I think that it should have the same chance of happening as if there was > > just one QEMU, because from the guest OS and firmware POV the emulated

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-26 Thread Avi Kivity
On 03/26/2012 02:20 PM, Stefano Stabellini wrote: > On Mon, 26 Mar 2012, Avi Kivity wrote: > > > > You may want your own host/pci bridge that lacks the device 0 > > > > configuration space. > > > > > > In order not to disrupt the emulated machine in QEMU too much, I was > > > thinking to let QEMU c

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-26 Thread Stefano Stabellini
On Mon, 26 Mar 2012, Avi Kivity wrote: > > > You may want your own host/pci bridge that lacks the device 0 > > > configuration space. > > > > In order not to disrupt the emulated machine in QEMU too much, I was > > thinking to let QEMU create the default device 0 and device 1: > > > > 00:00.0 Host

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-26 Thread Avi Kivity
On 03/26/2012 01:45 PM, Stefano Stabellini wrote: > > > > > > > > > Now the problem is: there isn't a simple way to specify the BDF where > > > you want to create the device; pci_create_simple takes a devfn but most > > > of the higher level functions (pc_vga_init, pci_nic_init_nofail, ...) > > > d

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-26 Thread Stefano Stabellini
On Sun, 25 Mar 2012, Avi Kivity wrote: > On 03/23/2012 01:02 PM, Stefano Stabellini wrote: > > Maybe the best thing to do is to have a set of machine specific options > > to select what devices need to be built in the machine. > > Most devices already can be dynamically selected: NICs, usb, acpi, >

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-25 Thread Avi Kivity
On 03/23/2012 01:02 PM, Stefano Stabellini wrote: > Maybe the best thing to do is to have a set of machine specific options > to select what devices need to be built in the machine. > Most devices already can be dynamically selected: NICs, usb, acpi, > cirrus, etc. > We already have a Xen machine (

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-23 Thread Stefano Stabellini
On Thu, 22 Mar 2012, Anthony Liguori wrote: > On 03/22/2012 11:01 AM, Julien Grall wrote: > > QEMU will now register PCI in Xen. It will usefull to forward > > IO config space to the right QEMU. > > > > Before to register a PCI device, QEMU will check with XenStore if it is > > autorized to registe

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-22 Thread Anthony Liguori
On 03/22/2012 11:01 AM, Julien Grall wrote: QEMU will now register PCI in Xen. It will usefull to forward IO config space to the right QEMU. Before to register a PCI device, QEMU will check with XenStore if it is autorized to register the PCI associate to a given BDF. Signed-off-by: Julien Gral

[Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-22 Thread Julien Grall
QEMU will now register PCI in Xen. It will usefull to forward IO config space to the right QEMU. Before to register a PCI device, QEMU will check with XenStore if it is autorized to register the PCI associate to a given BDF. Signed-off-by: Julien Grall --- hw/pci.c |6 + xen-all.c |

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-22 Thread Jan Kiszka
On 2012-03-22 17:01, Julien Grall wrote: > QEMU will now register PCI in Xen. It will usefull to forward > IO config space to the right QEMU. > > Before to register a PCI device, QEMU will check with XenStore if it is > autorized to register the PCI associate to a given BDF. > > Signed-off-by: Ju