diff options
author | Max Bruning <max@joyent.com> | 2011-07-07 08:11:08 -0700 |
---|---|---|
committer | Max Bruning <max@joyent.com> | 2011-07-07 08:11:08 -0700 |
commit | a3988e79c12226cbd2833896be1a36328e59384c (patch) | |
tree | 233ce6ac5b0a0697fb593be4b3b19721dbca6078 /kvm.c | |
parent | ad53e677f49480dc231dda42776fe9da67ebc5b6 (diff) | |
download | illumos-kvm-a3988e79c12226cbd2833896be1a36328e59384c.tar.gz |
HVM-472 panic in gfn_to_memslot_unaliased
Diffstat (limited to 'kvm.c')
-rw-r--r-- | kvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1074,9 +1074,10 @@ gfn_to_memslot_unaliased(struct kvm *kvm, gfn_t gfn) #ifdef XXX_KVM_DECLARATION struct kvm_memslots *slots = rcu_dereference(kvm->memslots); #else - struct kvm_memslots *slots = kvm->memslots; + struct kvm_memslots *slots; mutex_enter(&kvm->memslots_lock); + slots = kvm->memslots; #endif for (i = 0; i < slots->nmemslots; ++i) { |