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 | 6a7af8cb04c345eb1ed9d95250ef3ad4400e65c5 (patch) | |
tree | ef1238a5bdc92d641fd824a64f0c04d43798644f /kvm.h | |
parent | 638a84af9fced4b410243e45f755552303a17a3c (diff) | |
download | qemu-6a7af8cb04c345eb1ed9d95250ef3ad4400e65c5.zip qemu-6a7af8cb04c345eb1ed9d95250ef3ad4400e65c5.tar.gz qemu-6a7af8cb04c345eb1ed9d95250ef3ad4400e65c5.tar.bz2 |
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.h')
-rw-r--r-- | kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -85,6 +85,7 @@ int kvm_on_sigbus(int code, void *addr); struct KVMState; typedef struct KVMState KVMState; +extern KVMState *kvm_state; int kvm_ioctl(KVMState *s, int type, ...); |