diff options
| author | Peter Xu <[email protected]> | 2019-05-08 09:15:45 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2019-05-08 11:42:53 +0000 |
| commit | 4ddc9204572c33f2eb91fbdb1d99d8078388b67d (patch) | |
| tree | 84c5b7a326c8d083289afe89f410a78c6c73d3fd /lib/fault-inject.c | |
| parent | KVM: x86: use direct accessors for RIP and RSP (diff) | |
| download | kernel-4ddc9204572c33f2eb91fbdb1d99d8078388b67d.tar.gz kernel-4ddc9204572c33f2eb91fbdb1d99d8078388b67d.zip | |
KVM: Fix the bitmap range to copy during clear dirty
kvm_dirty_bitmap_bytes() will return the size of the dirty bitmap of
the memslot rather than the size of bitmap passed over from the ioctl.
Here for KVM_CLEAR_DIRTY_LOG we should only copy exactly the size of
bitmap that covers kvm_clear_dirty_log.num_pages.
Signed-off-by: Peter Xu <[email protected]>
Cc: [email protected]
Fixes: 2a31b9db153530df4aa02dac8c32837bf5f47019
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
