diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-02-07 12:19:25 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2011-02-14 12:39:47 -0200 |
commit | 892bbdf6d9676664b3c71f99e28a13d9c9e235f9 (patch) | |
tree | ef1238a5bdc92d641fd824a64f0c04d43798644f /kvm-all.c | |
parent | 7398b54f0a0bf5e3f1670e3838dc428c7cd802cb (diff) | |
download | qemu-892bbdf6d9676664b3c71f99e28a13d9c9e235f9.tar.gz qemu-892bbdf6d9676664b3c71f99e28a13d9c9e235f9.tar.bz2 qemu-892bbdf6d9676664b3c71f99e28a13d9c9e235f9.zip |
kvm: Make kvm_state globally available
KVM-assisted devices need access to it but we have no clean channel to
distribute a reference. As a workaround until there is a better
solution, export kvm_state for global use, though use should remain
restricted to the mentioned scenario.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r-- | kvm-all.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -78,7 +78,7 @@ struct KVMState int many_ioeventfds; }; -static KVMState *kvm_state; +KVMState *kvm_state; static const KVMCapabilityInfo kvm_required_capabilites[] = { KVM_CAP_INFO(USER_MEMORY), |