diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-06-18 18:30:13 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-06 17:59:43 +0200 |
commit | 7bbda04c8d13d0a599b31ed1c10dc76a62f9d4dc (patch) | |
tree | c80b78625b27b7d4046a1cc732909c0b567dbf37 /include/sysemu/kvm_int.h | |
parent | 8571ed35cfa50ed6b2aaee484dfa4f58176ebe00 (diff) |
kvm-all: make KVM's memory listener more generic
No semantic change, but s->slots moves into a new struct
KVMMemoryListener. KVM's memory listener becomes a member of struct
KVMState, and becomes of type KVMMemoryListener.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/sysemu/kvm_int.h')
-rw-r--r-- | include/sysemu/kvm_int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sysemu/kvm_int.h b/include/sysemu/kvm_int.h index e8dcbd7baa..d15f8bb883 100644 --- a/include/sysemu/kvm_int.h +++ b/include/sysemu/kvm_int.h @@ -22,6 +22,11 @@ typedef struct KVMSlot int flags; } KVMSlot; +typedef struct KVMMemoryListener { + MemoryListener listener; + KVMSlot *slots; +} KVMMemoryListener; + #define TYPE_KVM_ACCEL ACCEL_CLASS_NAME("kvm") #define KVM_STATE(obj) \ |