summaryrefslogtreecommitdiff
path: root/kvm.c
diff options
context:
space:
mode:
authorMax Bruning <max@joyent.com>2011-07-08 07:57:39 -0700
committerMax Bruning <max@joyent.com>2011-07-08 07:57:39 -0700
commit81ce4d6b18b89da85c986b24346f2191d5ad2b0e (patch)
treebb7532dddc64ce48d911e402b84617768aa76f87 /kvm.c
parenta3988e79c12226cbd2833896be1a36328e59384c (diff)
downloadillumos-kvm-81ce4d6b18b89da85c986b24346f2191d5ad2b0e.tar.gz
HVM-472 panic in gfn_to_memslot_unaliased
Diffstat (limited to 'kvm.c')
-rw-r--r--kvm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/kvm.c b/kvm.c
index 7c7ade4..df30e5f 100644
--- a/kvm.c
+++ b/kvm.c
@@ -995,14 +995,10 @@ skip_lpage:
}
slots->memslots[mem->slot] = new;
+ mutex_enter(&kvmp->memslots_lock);
old_memslots = kvmp->memslots;
-#ifdef XXX
- rcu_assign_pointer(kvmp->memslots, slots);
- synchronize_srcu_expedited(&kvmp->srcu);
-#else
- XXX_KVM_SYNC_PROBE;
kvmp->memslots = slots;
-#endif
+ mutex_exit(&kvmp->memslots_lock);
kvm_arch_commit_memory_region(kvmp, mem, old, user_alloc);