RE: [PATCH 4/4] PCI: hv: Change pci_protocol_version to per-hbus

2019-09-27 Thread Dexuan Cui
> From: Lorenzo Pieralisi > Sent: Thursday, September 26, 2019 9:29 AM > > On Wed, Sep 11, 2019 at 11:38:23PM +, Dexuan Cui wrote: > > A VM can have multiple hbus. It looks incorrect for the second hbus's > > hv_pci_protocol_negotiation() to set the global variable > > 'pci_protocol_version'

Re: [PATCH 4/4] PCI: hv: Change pci_protocol_version to per-hbus

2019-09-26 Thread Lorenzo Pieralisi
On Wed, Sep 11, 2019 at 11:38:23PM +, Dexuan Cui wrote: > A VM can have multiple hbus. It looks incorrect for the second hbus's > hv_pci_protocol_negotiation() to set the global variable > 'pci_protocol_version' (which was set by the first hbus), even if the > same value is written. > > Signed

[PATCH 4/4] PCI: hv: Change pci_protocol_version to per-hbus

2019-09-11 Thread Dexuan Cui
A VM can have multiple hbus. It looks incorrect for the second hbus's hv_pci_protocol_negotiation() to set the global variable 'pci_protocol_version' (which was set by the first hbus), even if the same value is written. Signed-off-by: Dexuan Cui --- drivers/pci/controller/pci-hyperv.c | 22 +