Commit a494aef
PCI: hv: Replace retarget_msi_interrupt_params with hyperv_pcpu_input_arg
4 commits are involved here:
A (2016): commit 0de8ce3 ("PCI: hv: Allocate physically contiguous hypercall params buffer")
B (2017): commit be66b67 ("PCI: hv: Use page allocation for hbus structure")
C (2019): commit 877b911 ("PCI: hv: Avoid a kmemleak false positive caused by the hbus buffer")
D (2018): commit 68bb7bf ("X86/Hyper-V: Enable IPI enlightenments")
Patch D introduced the per-CPU hypercall input page "hyperv_pcpu_input_arg"
in 2018. With patch D, we no longer need the per-Hyper-V-PCI-bus hypercall
input page "hbus->retarget_msi_interrupt_params" that was added in patch A,
and the issue addressed by patch B is no longer an issue, and we can also
get rid of patch C.
The change here is required for PCI device assignment to work for
Confidential VMs (CVMs) running without a paravisor, because otherwise we
would have to call set_memory_decrypted() for
"hbus->retarget_msi_interrupt_params" before calling the hypercall
HVCALL_RETARGET_INTERRUPT.
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Acked-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Link: https://lore.kernel.org/r/20230421013025.17152-1-decui@microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>1 parent 9c318a1 commit a494aef
1 file changed
Lines changed: 7 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
511 | | - | |
512 | | - | |
513 | 511 | | |
514 | 512 | | |
515 | 513 | | |
516 | 514 | | |
517 | 515 | | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | 516 | | |
526 | 517 | | |
527 | 518 | | |
| |||
645 | 636 | | |
646 | 637 | | |
647 | 638 | | |
648 | | - | |
| 639 | + | |
649 | 640 | | |
650 | | - | |
| 641 | + | |
651 | 642 | | |
652 | 643 | | |
653 | 644 | | |
| |||
680 | 671 | | |
681 | 672 | | |
682 | 673 | | |
683 | | - | |
| 674 | + | |
684 | 675 | | |
685 | 676 | | |
686 | 677 | | |
| |||
689 | 680 | | |
690 | 681 | | |
691 | 682 | | |
692 | | - | |
| 683 | + | |
693 | 684 | | |
694 | 685 | | |
695 | 686 | | |
| |||
708 | 699 | | |
709 | 700 | | |
710 | 701 | | |
711 | | - | |
712 | | - | |
| 702 | + | |
| 703 | + | |
713 | 704 | | |
714 | 705 | | |
715 | 706 | | |
| |||
3598 | 3589 | | |
3599 | 3590 | | |
3600 | 3591 | | |
3601 | | - | |
3602 | | - | |
3603 | | - | |
3604 | | - | |
3605 | | - | |
3606 | | - | |
3607 | 3592 | | |
3608 | 3593 | | |
3609 | 3594 | | |
3610 | 3595 | | |
3611 | | - | |
3612 | | - | |
3613 | | - | |
3614 | | - | |
3615 | | - | |
3616 | | - | |
3617 | | - | |
3618 | | - | |
3619 | | - | |
3620 | | - | |
3621 | | - | |
3622 | | - | |
3623 | | - | |
3624 | | - | |
3625 | | - | |
3626 | | - | |
3627 | | - | |
3628 | | - | |
3629 | | - | |
| 3596 | + | |
3630 | 3597 | | |
3631 | 3598 | | |
3632 | 3599 | | |
| |||
3683 | 3650 | | |
3684 | 3651 | | |
3685 | 3652 | | |
3686 | | - | |
3687 | 3653 | | |
3688 | 3654 | | |
3689 | 3655 | | |
| |||
0 commit comments