diff options
author | Sean Christopherson <seanjc@google.com> | 2021-01-22 16:03:34 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-04 05:27:14 -0500 |
commit | 15b51dc08a349f2f0832606c900b638a3dd19839 (patch) | |
tree | 2333c9a496b81bcfd5247b425a313eea321e3a63 /arch/x86/power | |
parent | 19979fba9bfaeab427a8e106d915f0627c952828 (diff) | |
download | lwn-15b51dc08a349f2f0832606c900b638a3dd19839.tar.gz lwn-15b51dc08a349f2f0832606c900b638a3dd19839.zip |
KVM: x86: Take KVM's SRCU lock only if steal time update is needed
Enter a SRCU critical section for a memslots lookup during steal time
update if and only if a steal time update is actually needed. Taking
the lock can be avoided if steal time is disabled by the guest, or if
KVM knows it has already flagged the vCPU as being preempted.
Reword the comment to be more precise as to exactly why memslots will
be queried.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210123000334.3123628-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/power')
0 files changed, 0 insertions, 0 deletions