Commit 8b79fef
x86/kvm: Teardown PV features on boot CPU as well
Various PV features (Async PF, PV EOI, steal time) work through memory
shared with hypervisor and when we restore from hibernation we must
properly teardown all these features to make sure hypervisor doesn't
write to stale locations after we jump to the previously hibernated kernel
(which can try to place anything there). For secondary CPUs the job is
already done by kvm_cpu_down_prepare(), register syscore ops to do
the same for boot CPU.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20210414123544.1060604-3-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 0a269a0 commit 8b79fef
1 file changed
+40
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
454 | 474 | | |
455 | 475 | | |
456 | 476 | | |
| |||
635 | 655 | | |
636 | 656 | | |
637 | 657 | | |
638 | | - | |
| 658 | + | |
639 | 659 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
| 660 | + | |
646 | 661 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
652 | 665 | | |
653 | 666 | | |
654 | 667 | | |
655 | | - | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
656 | 671 | | |
657 | | - | |
658 | 672 | | |
659 | | - | |
| 673 | + | |
660 | 674 | | |
661 | 675 | | |
662 | 676 | | |
663 | | - | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
664 | 686 | | |
665 | 687 | | |
666 | 688 | | |
| |||
704 | 726 | | |
705 | 727 | | |
706 | 728 | | |
| 729 | + | |
| 730 | + | |
707 | 731 | | |
708 | 732 | | |
709 | 733 | | |
| |||
0 commit comments