Re: [EXTERNAL] [PATCH RFC 2/2] PCI: hv: Add vPCI device reset support

From: Wei Liu

Date: Sun Aug 23 2026 - 19:57:08 EST


On Thu, Aug 13, 2026 at 09:40:48PM +0000, Long Li wrote:
>
>
> > -----Original Message-----
> > From: wei.liu@xxxxxxxxxx <wei.liu@xxxxxxxxxx>
> > Sent: Friday, July 24, 2026 4:09 PM
> > To: Linux on Hyper-V List <linux-hyperv@xxxxxxxxxxxxxxx>; linux-
> > pci@xxxxxxxxxxxxxxx
> > Cc: Wei Liu <wei.liu@xxxxxxxxxx>; KY Srinivasan <kys@xxxxxxxxxxxxx>;
> > Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>; Dexuan Cui
> > <DECUI@xxxxxxxxxxxxx>; Long Li <longli@xxxxxxxxxxxxx>; Jonathan Corbet
> > <corbet@xxxxxxx>; Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>; Lorenzo
> > Pieralisi <lpieralisi@xxxxxxxxxx>; Krzysztof Wilczyński
> > <kwilczynski@xxxxxxxxxx>; Manivannan Sadhasivam <mani@xxxxxxxxxx>; Rob
> > Herring <robh@xxxxxxxxxx>; Bjorn Helgaas <bhelgaas@xxxxxxxxxx>; open
> > list:DOCUMENTATION <linux-doc@xxxxxxxxxxxxxxx>; open list <linux-
> > kernel@xxxxxxxxxxxxxxx>
> > Subject: [EXTERNAL] [PATCH RFC 2/2] PCI: hv: Add vPCI device reset support
> >
> > From: Wei Liu <wei.liu@xxxxxxxxxx>
> >
> > Hyper-V vPCI protocol version 1.5 adds a RESET_DEVICE request for projected
> > PCI functions. Negotiate the new protocol version and issue the request
> > through the vPCI VMBus channel from the PCI controller reset callback.
> >
> > Use the existing VMBus response path. Return -ENOTTY when the host
> > reports STATUS_NOT_SUPPORTED so PCI core may try another reset method.
> >
> > Signed-off-by: Wei Liu <wei.liu@xxxxxxxxxx>
>
> Reviewed-by: Long Li <longli@xxxxxxxxxxxxx>

Thanks for the review!

I still need to find some copious free time to test the new hook
suggested in patch one.

I don't think changes in patch 1 will result in major changes in this
patch, so I intend to retain this tag when I post next time.

Thanks,
Wei