Commit f3c8006
committed
KVM: SEV: fix compat ABI for KVM_MEMORY_ENCRYPT_OP
The data structs for KVM_MEMORY_ENCRYPT_OP have different sizes for 32- and 64-bit
userspace, but they do not make any attempt to convert from one ABI to the other
when 32-bit userspace is running on 64-bit kernels. This configuration never
worked, and SEV is only for 64-bit kernels so we're not breaking ABI on 32-bit
kernels.
Fix this by adding the appropriate padding; no functional change intended
for 64-bit userspace.
Reviewed-by: Michael Roth <michael.roth@amd.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent c822a07 commit f3c8006
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| 697 | + | |
697 | 698 | | |
698 | 699 | | |
699 | 700 | | |
| |||
704 | 705 | | |
705 | 706 | | |
706 | 707 | | |
| 708 | + | |
707 | 709 | | |
708 | 710 | | |
| 711 | + | |
709 | 712 | | |
710 | 713 | | |
711 | 714 | | |
712 | 715 | | |
713 | 716 | | |
| 717 | + | |
714 | 718 | | |
715 | 719 | | |
716 | 720 | | |
717 | 721 | | |
718 | 722 | | |
719 | 723 | | |
| 724 | + | |
720 | 725 | | |
721 | 726 | | |
| 727 | + | |
722 | 728 | | |
723 | 729 | | |
| 730 | + | |
724 | 731 | | |
725 | 732 | | |
726 | 733 | | |
727 | 734 | | |
728 | 735 | | |
| 736 | + | |
729 | 737 | | |
730 | 738 | | |
731 | 739 | | |
| |||
738 | 746 | | |
739 | 747 | | |
740 | 748 | | |
| 749 | + | |
741 | 750 | | |
742 | 751 | | |
743 | 752 | | |
744 | 753 | | |
745 | 754 | | |
746 | 755 | | |
| 756 | + | |
747 | 757 | | |
748 | 758 | | |
749 | 759 | | |
750 | 760 | | |
| 761 | + | |
751 | 762 | | |
752 | 763 | | |
| 764 | + | |
753 | 765 | | |
754 | 766 | | |
| 767 | + | |
755 | 768 | | |
756 | 769 | | |
| 770 | + | |
757 | 771 | | |
758 | 772 | | |
| 773 | + | |
759 | 774 | | |
760 | 775 | | |
761 | 776 | | |
762 | 777 | | |
763 | 778 | | |
| 779 | + | |
764 | 780 | | |
765 | 781 | | |
| 782 | + | |
766 | 783 | | |
767 | 784 | | |
| 785 | + | |
768 | 786 | | |
769 | 787 | | |
770 | 788 | | |
771 | 789 | | |
772 | 790 | | |
773 | 791 | | |
774 | 792 | | |
| 793 | + | |
775 | 794 | | |
776 | 795 | | |
| 796 | + | |
777 | 797 | | |
778 | 798 | | |
779 | 799 | | |
780 | 800 | | |
781 | 801 | | |
| 802 | + | |
782 | 803 | | |
783 | 804 | | |
| 805 | + | |
784 | 806 | | |
785 | 807 | | |
| 808 | + | |
786 | 809 | | |
787 | 810 | | |
788 | 811 | | |
| |||
0 commit comments