[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code
From: |
Nikunj A Dadhania |
Subject: |
Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code |
Date: |
Fri, 27 Mar 2015 11:51:58 +0530 |
User-agent: |
Notmuch/0.17+27~gae47d61 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-redhat-linux-gnu) |
Alexey Kardashevskiy <address@hidden> 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;
>> }
>>
>> +bool vfio_get_devspec(PCIDevice *pdev, char **value)
>
>
> This function can live in hw/ppc/spapr_pci_vfio.c. Something like
> object_property_get_str(OBJECT(pdev), "host", NULL) will return the host
> address, and this is all you really want from VFIO here.
Looking more deeper, "host" is part of VFIOPCIDevice, which is not
available in hw/pci/spapr_pci_vfio.c
This was the reason, I had to move this code to hw/vfio/pci.c
Is there a way to get that?
Regards
Nikunj
- [Qemu-devel] [PATCH 1/2] vfio-pci: add flag to identify vfio pci device, Nikunj A Dadhania, 2015/03/26
- [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code, Nikunj A Dadhania, 2015/03/26
- Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code, David Gibson, 2015/03/26
- Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code, Alexey Kardashevskiy, 2015/03/26
- Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code, Nikunj A Dadhania, 2015/03/27
- Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code, David Gibson, 2015/03/27
- Re: [Qemu-devel] [PATCH 2/2] spapr: populate ibm,loc-code, Nikunj A Dadhania, 2015/03/27
Re: [Qemu-devel] [PATCH 1/2] vfio-pci: add flag to identify vfio pci device, Alexey Kardashevskiy, 2015/03/26
Re: [Qemu-devel] [PATCH 1/2] vfio-pci: add flag to identify vfio pci device, Alex Williamson, 2015/03/31