Re: [RFC XEN PATCH v4 1/5] xen/vpci: Clear all vpci status of device

2024-01-10 Thread Chen, Jiqian
On 2024/1/10 22:09, Stewart Hildebrand wrote: > On 1/10/24 01:24, Chen, Jiqian wrote: >> On 2024/1/9 23:24, Stewart Hildebrand wrote: >>> On 1/5/24 02:09, Jiqian Chen wrote: diff --git a/xen/drivers/pci/physdev.c b/xen/drivers/pci/physdev.c index 42db3e6d133c..552ccbf747cb 100644 ---

Re: [RFC XEN PATCH v4 1/5] xen/vpci: Clear all vpci status of device

2024-01-10 Thread Stewart Hildebrand
On 1/10/24 01:24, Chen, Jiqian wrote: > On 2024/1/9 23:24, Stewart Hildebrand wrote: >> On 1/5/24 02:09, Jiqian Chen wrote: >>> diff --git a/xen/drivers/pci/physdev.c b/xen/drivers/pci/physdev.c >>> index 42db3e6d133c..552ccbf747cb 100644 >>> --- a/xen/drivers/pci/physdev.c >>> +++ b/xen/drivers/pc

Re: [RFC XEN PATCH v4 1/5] xen/vpci: Clear all vpci status of device

2024-01-09 Thread Chen, Jiqian
On 2024/1/9 23:24, Stewart Hildebrand wrote: > On 1/5/24 02:09, Jiqian Chen wrote: >> diff --git a/xen/drivers/pci/physdev.c b/xen/drivers/pci/physdev.c >> index 42db3e6d133c..552ccbf747cb 100644 >> --- a/xen/drivers/pci/physdev.c >> +++ b/xen/drivers/pci/physdev.c >> @@ -67,6 +68,39 @@ ret_t pci_p

Re: [RFC XEN PATCH v4 1/5] xen/vpci: Clear all vpci status of device

2024-01-09 Thread Stewart Hildebrand
On 1/5/24 02:09, Jiqian Chen wrote: > diff --git a/xen/drivers/pci/physdev.c b/xen/drivers/pci/physdev.c > index 42db3e6d133c..552ccbf747cb 100644 > --- a/xen/drivers/pci/physdev.c > +++ b/xen/drivers/pci/physdev.c > @@ -67,6 +68,39 @@ ret_t pci_physdev_op(int cmd, XEN_GUEST_HANDLE_PARAM(void) > a

[RFC XEN PATCH v4 1/5] xen/vpci: Clear all vpci status of device

2024-01-04 Thread Jiqian Chen
When a device has been reset on dom0 side, the vpci on Xen side won't get notification, so the cached state in vpci is all out of date compare with the real device state. To solve that problem, add a new hypercall to clear all vpci device state. When the state of device is reset on dom0 side, dom0