aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-02-01 01:38:22 +0000
committerSean Christopherson <[email protected]>2025-02-12 18:45:55 +0000
commit24c16637802695c1721db6ec16a7acd11f9f9167 (patch)
tree124817d9aa1f522a125326cd2a021f8a3c8ac8e2 /rust/helpers/security.c
parentKVM: x86/xen: Use guest's copy of pvclock when starting timer (diff)
downloadkernel-24c16637802695c1721db6ec16a7acd11f9f9167.tar.gz
kernel-24c16637802695c1721db6ec16a7acd11f9f9167.zip
KVM: x86: Don't bleed PVCLOCK_GUEST_STOPPED across PV clocks
When updating a specific PV clock, make a full copy of KVM's reference copy/cache so that PVCLOCK_GUEST_STOPPED doesn't bleed across clocks. E.g. in the unlikely scenario the guest has enabled both kvmclock and Xen PV clock, a dangling GUEST_STOPPED in kvmclock would bleed into Xen PV clock. Using a local copy of the pvclock structure also sets the stage for eliminating the per-vCPU copy/cache (only the TSC frequency information actually "needs" to be cached/persisted). Fixes: aa096aa0a05f ("KVM: x86/xen: setup pvclock updates") Reviewed-by: Paul Durrant <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions