]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: Adjust the location of pkru_mask of kvm_mmu to reduce memory
authorPeng Hao <flyingpeng@tencent.com>
Mon, 28 Feb 2022 03:07:49 +0000 (11:07 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Apr 2022 17:37:18 +0000 (13:37 -0400)
commit9c11abb17084cc798d4c189068d806da7591b026
tree4fee74530b45dd14da38a724592cb80514513d3e
parentd6a57d85245fb76e47a59c430b9000f7898c2ed1
kvm: x86: Adjust the location of pkru_mask of kvm_mmu to reduce memory

Adjust the field pkru_mask to the back of direct_map to make up 8-byte
alignment.This reduces the size of kvm_mmu by 8 bytes.

Signed-off-by: Peng Hao <flyingpeng@tencent.com>
Message-Id: <20220228030749.88353-1-flyingpeng@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h