Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2017-02-28 Thread Hailiang Zhang
On 2017/3/1 0:14, Andrea Arcangeli wrote: Hello, On Tue, Feb 28, 2017 at 09:48:26AM +0800, Hailiang Zhang wrote: Yes, for current implementing of live snapshot, it supports tcg, but does not support kvm mode, the reason i have mentioned above, if you try to implement it, i think you need to

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2017-02-28 Thread Andrea Arcangeli
Hello, On Tue, Feb 28, 2017 at 09:48:26AM +0800, Hailiang Zhang wrote: > Yes, for current implementing of live snapshot, it supports tcg, > but does not support kvm mode, the reason i have mentioned above, > if you try to implement it, i think you need to start from userfaultfd > supporting KVM.

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2017-02-28 Thread Christian Pinto
Thanks a lot Hailiang On 28/02/2017 02:48, Hailiang Zhang wrote: Hi, On 2017/2/27 23:37, Christian Pinto wrote: Hello Hailiang, are there any updates on this patch series? Are you planning to release a new version? No, userfaultfd still does not support write-protect for KVM. You can see

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2017-02-27 Thread Hailiang Zhang
Hi, On 2017/2/27 23:37, Christian Pinto wrote: Hello Hailiang, are there any updates on this patch series? Are you planning to release a new version? No, userfaultfd still does not support write-protect for KVM. You can see the newest discussion about it here:

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2017-02-27 Thread Christian Pinto
Hello Hailiang, are there any updates on this patch series? Are you planning to release a new version? You say there are some issues with the current snapshot-v2 version, which issues were you referring to? On my side the only problem I have seen was that the live snapshot was not working

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-12-08 Thread Hailiang Zhang
Hi Andrea, I noticed that, you call change_protection() helper in mprotect to realize write protect capability for userfault. But i doubted mprotect can't work properly with KVM. If shadow page table (spte) which used by VM is already established in EPT,change_protection() does not remove its

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-09-17 Thread Hailiang Zhang
Hi Andrea, Any comments ? Thanks. On 2016/9/6 11:39, Hailiang Zhang wrote: Hi Andrea, I tested it with the new live memory snapshot with --enable-kvm, it doesn't work. To make things simple, I simplified the codes, only left the codes that can tested the write-protect capability. You can

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-09-05 Thread Hailiang Zhang
Hi Andrea, I tested it with the new live memory snapshot with --enable-kvm, it doesn't work. To make things simple, I simplified the codes, only left the codes that can tested the write-protect capability. You can find the codes from

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-08-20 Thread Hailiang Zhang
Hi, I updated this series, but didn't post it, because there are some problems while i tested the snapshot function. I didn't know if it is the userfaultfd issue or not. I don't have time to investigate it this month. I have put them in github https://github.com/coloft/qemu/tree/snapshot-v2

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-08-18 Thread Andrea Arcangeli
Hello everyone, I've an aa.git tree uptodate on the master & userfault branch (master includes other pending VM stuff, userfault branch only contains userfault enhancements): https://git.kernel.org/cgit/linux/kernel/git/andrea/aa.git/log/?h=userfault I didn't have time to test KVM live memory

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-19 Thread Hailiang Zhang
On 2016/7/14 19:43, Dr. David Alan Gilbert wrote: * Hailiang Zhang (zhang.zhanghaili...@huawei.com) wrote: On 2016/7/14 2:02, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: For now, we still didn't support live memory snapshot, we have discussed a scheme

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-14 Thread Dr. David Alan Gilbert
* Hailiang Zhang (zhang.zhanghaili...@huawei.com) wrote: > On 2016/7/14 2:02, Dr. David Alan Gilbert wrote: > > * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > > > For now, we still didn't support live memory snapshot, we have discussed > > > a scheme which based on userfaultfd long time

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-14 Thread Hailiang Zhang
On 2016/7/14 2:02, Dr. David Alan Gilbert wrote: * zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: For now, we still didn't support live memory snapshot, we have discussed a scheme which based on userfaultfd long time ago. You can find the discussion by the follow link:

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-13 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > For now, we still didn't support live memory snapshot, we have discussed > a scheme which based on userfaultfd long time ago. > You can find the discussion by the follow link: >

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-05 Thread Andrea Arcangeli
Hello, On Tue, Jul 05, 2016 at 11:57:31AM +0200, Baptiste Reynal wrote: > Ok, if it is not on Andrea schedule I am willing to take the action, > at least for ARM/ARM64 support. A few days ago I released this update: https://git.kernel.org/cgit/linux/kernel/git/andrea/aa.git/ git clone -b

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-05 Thread Hailiang Zhang
On 2016/7/5 17:57, Baptiste Reynal wrote: On Tue, Jul 5, 2016 at 3:49 AM, Hailiang Zhang wrote: On 2016/7/4 20:22, Baptiste Reynal wrote: On Thu, Jan 7, 2016 at 1:19 PM, zhanghailiang wrote: For now, we still didn't support

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-05 Thread Baptiste Reynal
On Tue, Jul 5, 2016 at 3:49 AM, Hailiang Zhang wrote: > On 2016/7/4 20:22, Baptiste Reynal wrote: >> >> On Thu, Jan 7, 2016 at 1:19 PM, zhanghailiang >> wrote: >>> >>> For now, we still didn't support live memory snapshot, we have

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-04 Thread Hailiang Zhang
On 2016/7/4 20:22, Baptiste Reynal wrote: On Thu, Jan 7, 2016 at 1:19 PM, zhanghailiang wrote: For now, we still didn't support live memory snapshot, we have discussed a scheme which based on userfaultfd long time ago. You can find the discussion by the follow

Re: [Qemu-devel] [RFC 00/13] Live memory snapshot based on userfaultfd

2016-07-04 Thread Baptiste Reynal
On Thu, Jan 7, 2016 at 1:19 PM, zhanghailiang wrote: > For now, we still didn't support live memory snapshot, we have discussed > a scheme which based on userfaultfd long time ago. > You can find the discussion by the follow link: >