提交 7682f2d0 编写于 作者: A Avi Kivity

KVM: VMX: Trivial vmcs_write64() code simplification

Signed-off-by: NAvi Kivity <avi@qumranet.com>
上级 14ae51b6
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册