]> asedeno.scripts.mit.edu Git - linux.git/commit
kvm: svm: prepare for new bit definition in nested_ctl
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 4 Dec 2017 16:57:24 +0000 (10:57 -0600)
committerBrijesh Singh <brijesh.singh@amd.com>
Mon, 4 Dec 2017 16:57:24 +0000 (10:57 -0600)
commitcea3a19b007a690a40fac373f22bf34ea69761a2
tree0a678246c69d06d20178c9d82455c7253a38fd21
parent18c71ce9c8822d48d2b4c50242051535d46082ac
kvm: svm: prepare for new bit definition in nested_ctl

Currently the nested_ctl variable in the vmcb_control_area structure is
used to indicate nested paging support. The nested paging support field
is actually defined as bit 0 of the field. In order to support a new
feature flag the usage of the nested_ctl and nested paging support must
be converted to operate on a single bit.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Borislav Petkov <bp@suse.de>
Cc: x86@kernel.org
Cc: kvm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/svm.h
arch/x86/kvm/svm.c