summaryrefslogtreecommitdiff
path: root/kvm.c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2012-03-08 00:41:46 +0000
committerRobert Mustacchi <rm@joyent.com>2012-03-08 00:41:46 +0000
commit9621d5228ac4dbdd99cdfe8f2946e7315261a893 (patch)
tree488c0b64195ad83c993bb2bf67a12763937811ee /kvm.c
parent76be9d4d13f5c5d32d915820bbf956b73fd89aab (diff)
downloadillumos-kvm-9621d5228ac4dbdd99cdfe8f2946e7315261a893.tar.gz
HVM-719 kvm should build with gcc 4.4.420120517
Diffstat (limited to 'kvm.c')
-rw-r--r--kvm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvm.c b/kvm.c
index 4cefa5b..266b30d 100644
--- a/kvm.c
+++ b/kvm.c
@@ -24,7 +24,7 @@
* Yaniv Kamay <yaniv@qumranet.com>
*
* Ported to illumos by Joyent
- * Copyright 2011 Joyent, Inc. All rights reserved.
+ * Copyright (c) 2012 Joyent, Inc. All rights reserved.
*
* Authors:
* Max Bruning <max@joyent.com>
@@ -783,7 +783,7 @@ kvm_free_physmem(struct kvm *kvm)
void
kvm_get_kvm(struct kvm *kvm)
{
- atomic_inc_32(&kvm->users_count);
+ atomic_inc_32((volatile uint32_t *)&kvm->users_count);
}
unsigned long
@@ -1449,7 +1449,7 @@ kvm_vm_ioctl_create_vcpu(struct kvm *kvm, uint32_t id, int *rval_p)
smp_wmb();
- atomic_inc_32(&kvm->online_vcpus);
+ atomic_inc_32((volatile uint32_t *)&kvm->online_vcpus);
if (kvm->bsp_vcpu_id == id)
kvm->bsp_vcpu = vcpu;