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

2024-06-19 Thread Jan Beulich
On 19.06.2024 05:39, Chen, Jiqian wrote: > On 2024/6/18 16:33, Jan Beulich wrote: >> On 18.06.2024 08:25, Chen, Jiqian wrote: >>> On 2024/6/17 22:17, Jan Beulich wrote: On 17.06.2024 11:00, Jiqian Chen wrote: > --- a/xen/drivers/pci/physdev.c > +++ b/xen/drivers/pci/physdev.c > @@

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

2024-06-18 Thread Chen, Jiqian
On 2024/6/18 16:33, Jan Beulich wrote: > On 18.06.2024 08:25, Chen, Jiqian wrote: >> On 2024/6/17 22:17, Jan Beulich wrote: >>> On 17.06.2024 11:00, Jiqian Chen wrote: --- a/xen/drivers/pci/physdev.c +++ b/xen/drivers/pci/physdev.c @@ -2,11 +2,17 @@ #include #include >>

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

2024-06-18 Thread Jan Beulich
On 18.06.2024 08:25, Chen, Jiqian wrote: > On 2024/6/17 22:17, Jan Beulich wrote: >> On 17.06.2024 11:00, Jiqian Chen wrote: >>> --- a/xen/drivers/pci/physdev.c >>> +++ b/xen/drivers/pci/physdev.c >>> @@ -2,11 +2,17 @@ >>> #include >>> #include >>> #include >>> +#include >>> >>> #ifndef C

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

2024-06-17 Thread Chen, Jiqian
On 2024/6/17 22:17, Jan Beulich wrote: > On 17.06.2024 11:00, Jiqian Chen wrote: >> --- a/xen/drivers/pci/physdev.c >> +++ b/xen/drivers/pci/physdev.c >> @@ -2,11 +2,17 @@ >> #include >> #include >> #include >> +#include >> >> #ifndef COMPAT >> typedef long ret_t; >> #endif >> >> +sta

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

2024-06-17 Thread Jan Beulich
On 17.06.2024 11:00, Jiqian Chen wrote: > --- a/xen/drivers/pci/physdev.c > +++ b/xen/drivers/pci/physdev.c > @@ -2,11 +2,17 @@ > #include > #include > #include > +#include > > #ifndef COMPAT > typedef long ret_t; > #endif > > +static const struct pci_device_state_reset_method > +

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

2024-06-17 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