Re: [PATCH net V3] vhost: log dirty page correctly

2019-01-14 Thread Jason Wang
On 2019/1/15 上午2:04, Michael S. Tsirkin wrote: On Fri, Jan 11, 2019 at 12:00:36PM +0800, Jason Wang wrote: Vhost dirty page logging API is designed to sync through GPA. But we try to log GIOVA when device IOTLB is enabled. This is wrong and may lead to missing data after migration. To solve

Re: [PATCH net V3] vhost: log dirty page correctly

2019-01-14 Thread Michael S. Tsirkin
On Fri, Jan 11, 2019 at 12:00:36PM +0800, Jason Wang wrote: > Vhost dirty page logging API is designed to sync through GPA. But we > try to log GIOVA when device IOTLB is enabled. This is wrong and may > lead to missing data after migration. > > To solve this issue, when logging with device IOTLB

[PATCH net V3] vhost: log dirty page correctly

2019-01-10 Thread Jason Wang
Vhost dirty page logging API is designed to sync through GPA. But we try to log GIOVA when device IOTLB is enabled. This is wrong and may lead to missing data after migration. To solve this issue, when logging with device IOTLB enabled, we will: 1) reuse the device IOTLB translation result of