Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101963206
D47306.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
763 B
Referenced Files
None
Subscribers
None
D47306.id.diff
View Options
diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c
--- a/sys/amd64/vmm/vmm.c
+++ b/sys/amd64/vmm/vmm.c
@@ -559,7 +559,8 @@
if (vcpuid < 0 || vcpuid >= vm_get_maxcpus(vm))
return (NULL);
- vcpu = atomic_load_ptr(&vm->vcpu[vcpuid]);
+ vcpu = (struct vcpu *)
+ atomic_load_acq_ptr((uintptr_t *)&vm->vcpu[vcpuid]);
if (__predict_true(vcpu != NULL))
return (vcpu);
diff --git a/sys/arm64/vmm/vmm.c b/sys/arm64/vmm/vmm.c
--- a/sys/arm64/vmm/vmm.c
+++ b/sys/arm64/vmm/vmm.c
@@ -443,7 +443,8 @@
if (vcpuid >= vgic_max_cpu_count(vm->cookie))
return (NULL);
- vcpu = atomic_load_ptr(&vm->vcpu[vcpuid]);
+ vcpu = (struct vcpu *)
+ atomic_load_acq_ptr((uintptr_t *)&vm->vcpu[vcpuid]);
if (__predict_true(vcpu != NULL))
return (vcpu);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 8:59 PM (10 m, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14477145
Default Alt Text
D47306.id.diff (763 B)
Attached To
Mode
D47306: vmm: fix vcpu atomic load
Attached
Detach File
Event Timeline
Log In to Comment