diff options
author | Uri Lublin <uril@qumranet.com> | 2008-09-28 17:32:57 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-09-28 18:06:32 +0300 |
commit | 3975d364e82254fe87eade8ab166d8730258f537 (patch) | |
tree | 6d3ef37d0bf5b922e3e754061f15f4784ff2b18d /libkvm | |
parent | 8fbe341e5872e8065ca76de8e66b664b6e69988b (diff) |
kvm: libkvm: kvm_dirty_pages_log_change: do not forget to set .slot
The default for .slot is 0, which is wrong for all other kvm-slots.
This fixes enabling/disabling kvm dirty page logging.
Signed-off-by: Uri Lublin <uril@qumranet.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'libkvm')
-rw-r--r-- | libkvm/libkvm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkvm/libkvm.c b/libkvm/libkvm.c index 88d3f5d8..dfa63bb8 100644 --- a/libkvm/libkvm.c +++ b/libkvm/libkvm.c @@ -172,6 +172,7 @@ static int kvm_dirty_pages_log_change(kvm_context_t kvm, unsigned long phys_addr { struct kvm_userspace_memory_region mem = { + .slot = slot, .memory_size = slots[slot].len, .guest_phys_addr = slots[slot].phys_addr, .userspace_addr = slots[slot].userspace_addr, |