Re: [PATCH V1 30/32] vfio-pci: save and restore

2020-10-07 Thread Steven Sistare
On 8/20/2020 6:33 AM, Jason Zeng wrote: > On Wed, Aug 19, 2020 at 05:15:11PM -0400, Steven Sistare wrote: >> On 8/9/2020 11:50 PM, Jason Zeng wrote: >>> On Fri, Aug 07, 2020 at 04:38:12PM -0400, Steven Sistare wrote: On 8/6/2020 6:22 AM, Jason Zeng wrote: > Hi Steve, > > On

Re: [PATCH V1 30/32] vfio-pci: save and restore

2020-08-20 Thread Jason Zeng
On Wed, Aug 19, 2020 at 05:15:11PM -0400, Steven Sistare wrote: > On 8/9/2020 11:50 PM, Jason Zeng wrote: > > On Fri, Aug 07, 2020 at 04:38:12PM -0400, Steven Sistare wrote: > >> On 8/6/2020 6:22 AM, Jason Zeng wrote: > >>> Hi Steve, > >>> > >>> On Thu, Jul 30, 2020 at 08:14:34AM -0700, Steve

Re: [PATCH V1 30/32] vfio-pci: save and restore

2020-08-19 Thread Steven Sistare
On 8/9/2020 11:50 PM, Jason Zeng wrote: > On Fri, Aug 07, 2020 at 04:38:12PM -0400, Steven Sistare wrote: >> On 8/6/2020 6:22 AM, Jason Zeng wrote: >>> Hi Steve, >>> >>> On Thu, Jul 30, 2020 at 08:14:34AM -0700, Steve Sistare wrote: @@ -3182,6 +3207,51 @@ static Property

Re: [PATCH V1 30/32] vfio-pci: save and restore

2020-08-09 Thread Jason Zeng
On Fri, Aug 07, 2020 at 04:38:12PM -0400, Steven Sistare wrote: > On 8/6/2020 6:22 AM, Jason Zeng wrote: > > Hi Steve, > > > > On Thu, Jul 30, 2020 at 08:14:34AM -0700, Steve Sistare wrote: > >> @@ -3182,6 +3207,51 @@ static Property vfio_pci_dev_properties[] = { > >>

Re: [PATCH V1 30/32] vfio-pci: save and restore

2020-08-07 Thread Steven Sistare
On 8/6/2020 6:22 AM, Jason Zeng wrote: > Hi Steve, > > On Thu, Jul 30, 2020 at 08:14:34AM -0700, Steve Sistare wrote: >> @@ -3182,6 +3207,51 @@ static Property vfio_pci_dev_properties[] = { >> DEFINE_PROP_END_OF_LIST(), >> }; >> >> +static int vfio_pci_post_load(void *opaque, int

Re: [PATCH V1 30/32] vfio-pci: save and restore

2020-08-06 Thread Jason Zeng
Hi Steve, On Thu, Jul 30, 2020 at 08:14:34AM -0700, Steve Sistare wrote: > @@ -3182,6 +3207,51 @@ static Property vfio_pci_dev_properties[] = { > DEFINE_PROP_END_OF_LIST(), > }; > > +static int vfio_pci_post_load(void *opaque, int version_id) > +{ > +int vector; > +MSIMessage msg;

[PATCH V1 30/32] vfio-pci: save and restore

2020-07-30 Thread Steve Sistare
Enable vfio-pci devices to be saved and restored across an exec restart of qemu. At vfio creation time, save the value of vfio container, group, and device descriptors in the environment. In cprsave, save the msi message area as part of vfio-pci vmstate, and clear the close-on-exec flag for the