Thread (123 messages) 123 messages, 8 authors, 2021-09-15

Re: [PATCH Part1 v5 33/38] x86/sev: Provide support for SNP guest request NAEs

From: Tom Lendacky <thomas.lendacky@amd.com>
Date: 2021-08-27 19:57:19
Also in: kvm, linux-efi, linux-mm, lkml, platform-driver-x86

On 8/27/21 1:07 PM, Brijesh Singh wrote:
On 8/27/21 12:44 PM, Borislav Petkov wrote:
quoted
On Fri, Aug 20, 2021 at 10:19:28AM -0500, Brijesh Singh wrote:
...
quoted
quoted
+
+/*
+ * The error code when the data_npages is too small. The error code
+ * is defined in the GHCB specification.
+ */
+#define SNP_GUEST_REQ_INVALID_LEN	0x100000000ULL
so basically

BIT_ULL(32)
Noted.
The main thing about this is that it is an error code from the HV on 
extended guest requests. The HV error code sits in the high-order 32-bits 
of the SW_EXIT_INFO_2 field. So defining it either way seems a bit 
confusing. To me, the value should just be 1ULL and then it should be 
shifted when assigning it to the SW_EXIT_INFO_2.

Thanks,
Tom
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help