mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 16:46:23 +08:00
KVM: VMX: Trivial vmcs_write64() code simplification
Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
parent
14ae51b6c0
commit
7682f2d0dd
@ -431,10 +431,8 @@ static void vmcs_write32(unsigned long field, u32 value)
|
||||
|
||||
static void vmcs_write64(unsigned long field, u64 value)
|
||||
{
|
||||
#ifdef CONFIG_X86_64
|
||||
vmcs_writel(field, value);
|
||||
#else
|
||||
vmcs_writel(field, value);
|
||||
#ifndef CONFIG_X86_64
|
||||
asm volatile ("");
|
||||
vmcs_writel(field+1, value >> 32);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user