OSDN Git Service

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)
commit8176472563fb1a233f46f3f0441738c82afd88da
tree4fee74530b45dd14da38a724592cb80514513d3e
parent42c35fdc340ffbf6b3a8ffbdd5b53d856ecf924b
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