]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SEV-ES: reduce ghcb_sa_len to 32 bits
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Oct 2021 10:49:18 +0000 (06:49 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 18 Oct 2021 18:07:19 +0000 (14:07 -0400)
commit3da666ff8517329826789def09b5c6e5a05fb127
treeca9ef775f5f75f4a5aacc568e9ee2c1309ab3e4f
parent74812c5e62f41d66a2ec6a413394f8220fb89768
KVM: SEV-ES: reduce ghcb_sa_len to 32 bits

The size of the GHCB scratch area is limited to 16 KiB (GHCB_SCRATCH_AREA_LIMIT),
so there is no need for it to be a u64.  This fixes a build error on 32-bit
systems:

i686-linux-gnu-ld: arch/x86/kvm/svm/sev.o: in function `sev_es_string_io:
sev.c:(.text+0x110f): undefined reference to `__udivdi3'

Cc: stable@vger.kernel.org
Fixes: 80cfc862e6ab ("KVM: SEV-ES: fix length of string I/O")
Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.h