qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/3] vmw_pvscsi: The pvscsi device is a PCIE end


From: Dmitry Fleytman
Subject: Re: [Qemu-devel] [PATCH 2/3] vmw_pvscsi: The pvscsi device is a PCIE endpoint
Date: Fri, 20 Nov 2015 09:41:05 +0200

Acked-by: Dmitry Fleytman <address@hidden>

> On 19 Nov 2015, at 16:21 PM, Shmulik Ladkani <address@hidden> wrote:
> 
> Report the 'express endpoint' capability if on a PCIE bus.
> 
> Signed-off-by: Shmulik Ladkani <address@hidden>
> ---
> hw/scsi/vmw_pvscsi.c | 5 +++++
> 1 file changed, 5 insertions(+)
> 
> diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c
> index df4d383..8854fd9 100644
> --- a/hw/scsi/vmw_pvscsi.c
> +++ b/hw/scsi/vmw_pvscsi.c
> @@ -1081,6 +1081,10 @@ pvscsi_init(PCIDevice *pci_dev)
> 
>     pvscsi_init_msi(s);
> 
> +    if (pci_bus_is_express(pci_dev->bus)) {
> +        pcie_endpoint_cap_init(pci_dev, 0);
> +    }
> +
>     s->completion_worker = qemu_bh_new(pvscsi_process_completion_queue, s);
>     if (!s->completion_worker) {
>         pvscsi_cleanup_msi(s);
> @@ -1189,6 +1193,7 @@ static void pvscsi_class_init(ObjectClass *klass, void 
> *data)
>     k->subsystem_vendor_id = PCI_VENDOR_ID_VMWARE;
>     k->subsystem_id = PCI_DEVICE_ID_VMWARE_PVSCSI;
>     k->revision = 0x2;
> +    k->is_express = 1;
>     dc->reset = pvscsi_reset;
>     dc->vmsd = &vmstate_pvscsi;
>     dc->props = pvscsi_properties;
> -- 
> 1.9.1
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]