|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH v2 5/6] vmw_pvscsi: The pvscsi device is a PCIE endpoint |
Date: | Mon, 14 Dec 2015 19:05:26 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 14/12/2015 18:37, Michael S. Tsirkin wrote: > > Can you instead change PCIDeviceClass's pc->is_express to a function > > pointer, and provide a sample implementation pci_is_express_true for the > > devices that set is_express to true? > > I'm not very familiar with vmw code, and I dislike overusing callbacks. > What exactly would this callback do? It would be exactly the same for virtio. The callback would return true if the device should have a PCIe capability, false if not. The default would be always false. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |