Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread Alexey Kardashevskiy
On 03/27/2015 05:21 PM, Nikunj A Dadhania wrote: Alexey Kardashevskiy writes: diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 95d666e..dd97258 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -3319,6 +3319,24 @@ static void vfio_unregister_req_notifier(VFIOPCIDevice *vdev) vdev->req_

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread Nikunj A Dadhania
David Gibson writes: > On Fri, Mar 27, 2015 at 10:04:27AM +0530, Nikunj A Dadhania wrote: >> David Gibson writes: >> >> > On Thu, Mar 26, 2015 at 12:12:12PM +0530, Nikunj A Dadhania wrote: >> >> Each hardware instance has a platform unique location code. The OF >> >> device tree that describes

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: >> diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c >> index 95d666e..dd97258 100644 >> --- a/hw/vfio/pci.c >> +++ b/hw/vfio/pci.c >> @@ -3319,6 +3319,24 @@ static void >> vfio_unregister_req_notifier(VFIOPCIDevice *vdev) >> vdev->req_enabled = false; >> } >> >> +b

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread David Gibson
On Fri, Mar 27, 2015 at 10:04:27AM +0530, Nikunj A Dadhania wrote: > David Gibson writes: > > > On Thu, Mar 26, 2015 at 12:12:12PM +0530, Nikunj A Dadhania wrote: > >> Each hardware instance has a platform unique location code. The OF > >> device tree that describes a part of a hardware entity m

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread Nikunj A Dadhania
David Gibson writes: > On Thu, Mar 26, 2015 at 12:12:12PM +0530, Nikunj A Dadhania wrote: >> Each hardware instance has a platform unique location code. The OF >> device tree that describes a part of a hardware entity must include >> the “ibm,loc-code” property with a value that represents the l

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread Nikunj A Dadhania
Alexey Kardashevskiy writes: > On 03/26/2015 05:42 PM, Nikunj A Dadhania wrote: >> Each hardware instance has a platform unique location code. The OF >> device tree that describes a part of a hardware entity must include >> the “ibm,loc-code” property with a value that represents the location >>

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread Alexey Kardashevskiy
On 03/27/2015 02:28 PM, David Gibson wrote: On Thu, Mar 26, 2015 at 12:12:12PM +0530, Nikunj A Dadhania wrote: Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware entity must include the “ibm,loc-code” property with a value that rep

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread David Gibson
On Thu, Mar 26, 2015 at 12:12:12PM +0530, Nikunj A Dadhania wrote: > Each hardware instance has a platform unique location code. The OF > device tree that describes a part of a hardware entity must include > the “ibm,loc-code” property with a value that represents the location > code for that hard

Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-26 Thread Alexey Kardashevskiy
On 03/26/2015 05:42 PM, Nikunj A Dadhania wrote: Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware entity must include the “ibm,loc-code” property with a value that represents the location code for that hardware entity. Introduce

[Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code

2015-03-25 Thread Nikunj A Dadhania
Each hardware instance has a platform unique location code. The OF device tree that describes a part of a hardware entity must include the “ibm,loc-code” property with a value that represents the location code for that hardware entity. Introduce an hcall to populate ibm,loc-cde. 1) PCI passthru d