Commit f2350b0
committed
KVM: SVM: Update svm->ldr_reg cache even if LDR is "bad"
jira LE-1907
Rebuild_History Non-Buildable kernel-5.14.0-284.30.1.el9_2
commit-author Sean Christopherson <seanjc@google.com>
commit 4f160b7
Update SVM's cache of the LDR even if the new value is "bad". Leaving
stale information in the cache can result in KVM missing updates and/or
invalidating the wrong entry, e.g. if avic_invalidate_logical_id_entry()
is triggered after a different vCPU has "claimed" the old LDR.
Fixes: 18f40c5 ("svm: Add VMEXIT handlers for AVIC")
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20230106011306.85230-27-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 4f160b7)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 850932b commit f2350b0
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
| 542 | + | |
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
558 | | - | |
559 | 557 | | |
560 | 558 | | |
561 | 559 | | |
| |||
575 | 573 | | |
576 | 574 | | |
577 | 575 | | |
578 | | - | |
579 | 576 | | |
580 | 577 | | |
581 | 578 | | |
| |||
589 | 586 | | |
590 | 587 | | |
591 | 588 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
| 589 | + | |
| 590 | + | |
597 | 591 | | |
598 | 592 | | |
599 | 593 | | |
| |||
0 commit comments