RE: [PATCH V2 2/4] misc: vop: do not allocate and reassign the used ring

2020-09-29 Thread David Laight
From: Sherry Sun > Sent: 29 September 2020 14:02 > > Hi Christoph, > > > > diff --git a/include/uapi/linux/mic_common.h > > > b/include/uapi/linux/mic_common.h index 504e523f702c..e680fe27af69 > > > 100644 > > > --- a/include/uapi/linux/mic_common.h > > > +++ b/include/uapi/linux/mic_common.h >

RE: [PATCH V2 2/4] misc: vop: do not allocate and reassign the used ring

2020-09-29 Thread Sherry Sun
Hi Christoph, > > diff --git a/include/uapi/linux/mic_common.h > > b/include/uapi/linux/mic_common.h index 504e523f702c..e680fe27af69 > > 100644 > > --- a/include/uapi/linux/mic_common.h > > +++ b/include/uapi/linux/mic_common.h > > @@ -56,8 +56,6 @@ struct mic_device_desc { > > * @vdev_reset:

Re: [PATCH V2 2/4] misc: vop: do not allocate and reassign the used ring

2020-09-29 Thread Christoph Hellwig
> diff --git a/include/uapi/linux/mic_common.h b/include/uapi/linux/mic_common.h > index 504e523f702c..e680fe27af69 100644 > --- a/include/uapi/linux/mic_common.h > +++ b/include/uapi/linux/mic_common.h > @@ -56,8 +56,6 @@ struct mic_device_desc { > * @vdev_reset: Set to 1 by guest to indicate

[PATCH V2 2/4] misc: vop: do not allocate and reassign the used ring

2020-09-29 Thread Sherry Sun
We don't need to allocate and reassign the used ring here and remove the used_address_updated flag.Since RC has allocated the entire vring, including the used ring. Simply add the corresponding offset can get the used ring address. If following the orginal way to reassign the used ring, will