diff options
author | Max Bruning <max@joyent.com> | 2011-07-08 07:57:39 -0700 |
---|---|---|
committer | Max Bruning <max@joyent.com> | 2011-07-08 07:57:39 -0700 |
commit | 81ce4d6b18b89da85c986b24346f2191d5ad2b0e (patch) | |
tree | bb7532dddc64ce48d911e402b84617768aa76f87 /kvm.c | |
parent | a3988e79c12226cbd2833896be1a36328e59384c (diff) | |
download | illumos-kvm-81ce4d6b18b89da85c986b24346f2191d5ad2b0e.tar.gz |
HVM-472 panic in gfn_to_memslot_unaliased
Diffstat (limited to 'kvm.c')
-rw-r--r-- | kvm.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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); |