login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
25
Re: [kvm-devel] [PATCH 4/8] X86: export information about NPT to generic x86 code
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Anthony Liguori
Subject:
Re: [kvm-devel] [PATCH 4/8] X86: export information about NPT to generic x86 code
Date: Friday, January 25, 2008 - 2:40 pm
Anthony Liguori wrote:
quoted text
> Joerg Roedel wrote: >> The generic x86 code has to know if the specific implementation uses >> Nested >> Paging. In the generic code Nested Paging is called Hardware Assisted >> Paging >> (HAP) to avoid confusion with (future) HAP implementations of other >> vendors. >> This patch exports the availability of HAP to the generic x86 code. >> >> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> >> --- >> arch/x86/kvm/svm.c | 7 +++++++ >> arch/x86/kvm/vmx.c | 7 +++++++ >> include/asm-x86/kvm_host.h | 2 ++ >> 3 files changed, 16 insertions(+), 0 deletions(-) >> >> diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c >> index 2e718ff..d0bfdd8 100644 >> --- a/arch/x86/kvm/svm.c >> +++ b/arch/x86/kvm/svm.c >> @@ -1678,6 +1678,11 @@ static bool svm_cpu_has_accelerated_tpr(void) >> return false; >> } >> >> +static bool svm_hap_enabled(void) >> +{ >> + return npt_enabled; >> +} >> + >> > > To help with bisecting, you should probably return false here until > the patch that actually implements NPT support. Otherwise, the 7th > patch in this series breaks KVM for SVM.
Ignore this, you're already doing the right thing :-) Regards, Anthony Liguori
quoted text
> Regards, > > Anthony Liguori > >> static struct kvm_x86_ops svm_x86_ops = { >> .cpu_has_kvm_support = has_svm, >> .disabled_by_bios = is_disabled, >> @@ -1734,6 +1739,8 @@ static struct kvm_x86_ops svm_x86_ops = { >> .inject_pending_vectors = do_interrupt_requests, >> >> .set_tss_addr = svm_set_tss_addr, >> + >> + .hap_enabled = svm_hap_enabled, >> }; >> >> static int __init svm_init(void) >> diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c >> index 00a00e4..8feb775 100644 >> --- a/arch/x86/kvm/vmx.c >> +++ b/arch/x86/kvm/vmx.c >> @@ -2631,6 +2631,11 @@ static void __init >> vmx_check_processor_compat(void *rtn) >> } >> } >> >> +static bool vmx_hap_enabled(void) >> +{ >> + return false; >> +} >> + >> static struct kvm_x86_ops vmx_x86_ops = { >> .cpu_has_kvm_support = cpu_has_kvm_support, >> .disabled_by_bios = vmx_disabled_by_bios, >> @@ -2688,6 +2693,8 @@ static struct kvm_x86_ops vmx_x86_ops = { >> .inject_pending_vectors = do_interrupt_requests, >> >> .set_tss_addr = vmx_set_tss_addr, >> + >> + .hap_enabled = vmx_hap_enabled, >> }; >> >> static int __init vmx_init(void) >> diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h >> index 67ae307..45a9d05 100644 >> --- a/include/asm-x86/kvm_host.h >> +++ b/include/asm-x86/kvm_host.h >> @@ -392,6 +392,8 @@ struct kvm_x86_ops { >> struct kvm_run *run); >> >> int (*set_tss_addr)(struct kvm *kvm, unsigned int addr); >> + >> + bool (*hap_enabled)(void); >> }; >> >> extern struct kvm_x86_ops *kvm_x86_ops; >> >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH][RFC] SVM: Add Support for Nested Paging in AMD Fam ...
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 1/8] SVM: move feature detection to hardware setup code
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 2/8] SVM: add detection of Nested Paging feature
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 3/8] SVM: add module parameter to disable Nested Paging
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 4/8] X86: export information about NPT to generic x ...
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 5/8] MMU: make the __nonpaging_map function generic
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 6/8] X86: export the load_pdptrs() function to modules
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 7/8] MMU: add HAP support to the KVM MMU
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
[PATCH 8/8] SVM: add support for Nested Paging
, Joerg Roedel
, (Fri Jan 25, 1:53 pm)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Anthony Liguori
, (Fri Jan 25, 2:32 pm)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Anthony Liguori
, (Fri Jan 25, 2:35 pm)
Re: [kvm-devel] [PATCH 4/8] X86: export information about ...
, Anthony Liguori
, (Fri Jan 25, 2:37 pm)
Re: [kvm-devel] [PATCH 4/8] X86: export information about ...
, Anthony Liguori
, (Fri Jan 25, 2:40 pm)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Joerg Roedel
, (Fri Jan 25, 3:10 pm)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Joerg Roedel
, (Fri Jan 25, 3:47 pm)
RE: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Nakajima, Jun
, (Fri Jan 25, 6:47 pm)
RE: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Nakajima, Jun
, (Fri Jan 25, 6:57 pm)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Joerg Roedel
, (Sat Jan 26, 12:25 am)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Alexey Eremenko
, (Sat Jan 26, 2:49 am)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Joerg Roedel
, (Sat Jan 26, 3:06 am)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Anthony Liguori
, (Sat Jan 26, 9:36 am)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Avi Kivity
, (Sat Jan 26, 11:23 am)
Re: [kvm-devel] [PATCH 3/8] SVM: add module parameter to d ...
, Avi Kivity
, (Sat Jan 26, 11:38 am)
Re: [kvm-devel] [PATCH 4/8] X86: export information about ...
, Avi Kivity
, (Sun Jan 27, 1:40 am)
Re: [kvm-devel] [PATCH 8/8] SVM: add support for Nested Paging
, Avi Kivity
, (Sun Jan 27, 1:52 am)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Avi Kivity
, (Sun Jan 27, 1:57 am)
Re: [kvm-devel] [PATCH 8/8] SVM: add support for Nested Paging
, Joerg Roedel
, (Sun Jan 27, 2:41 am)
Re: [kvm-devel] [PATCH 8/8] SVM: add support for Nested Paging
, Avi Kivity
, (Sun Jan 27, 2:51 am)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Joerg Roedel
, (Sun Jan 27, 2:51 am)
Re: [kvm-devel] [PATCH 8/8] SVM: add support for Nested Paging
, Joerg Roedel
, (Sun Jan 27, 3:05 am)
Re: [kvm-devel] [PATCH 8/8] SVM: add support for Nested Paging
, Avi Kivity
, (Sun Jan 27, 3:24 am)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Jeremy Fitzhardinge
, (Sun Jan 27, 8:20 pm)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Avi Kivity
, (Mon Jan 28, 4:08 am)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Joerg Roedel
, (Thu Feb 7, 5:09 am)
Re: [kvm-devel] [PATCH][RFC] SVM: Add Support for Nested P ...
, Avi Kivity
, (Sun Feb 10, 3:35 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Mel Gorman
Re: [PATCH 1/4] vmstat: remove zone->lock from walk_zones_in_node
Guenter Roeck
Re: [lm-sensors] Location for thermal drivers
David Woodhouse
Re: RFC: Moving firmware blobs out of the kernel.
Siddha, Suresh B
Re: [PATCH 2.6.21 review I] [11/25] x86: default to physical mode on hotplug CPU k...
Peter Zijlstra
Re: [patch 4/6] mm: merge populate and nopage into fault (fixes nonlinear)
git-commits-head
:
Linux Kernel Mailing List
[MIPS] Fix potential latency problem due to non-atomic cpu_wait.
Linux Kernel Mailing List
USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS
Linux Kernel Mailing List
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Linux Kernel Mailing List
[Bluetooth] Initiate authentication during connection establishment
Linux Kernel Mailing List
[POWERPC] 4xx: Add ppc40x_defconfig
linux-netdev
:
MERCEDES
Your mail id has won 950,000.00 in the MERCEDES Benz Online Promo.for claims send:
David Miller
Re: [PATCH] xen/netfront: do not mark packets of length < MSS as GSO
David Miller
Re: skb_segment() questions
Shan Wei
[RFC PATCH net-next 2/5]IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeou...
Stanislaw Gruszka
[PATCH 1/4] bnx2x: use smp_mb() to keep ordering of read write operations
git
:
Nicolas Sebrecht
git-svn died of signal 11 (was "3 failures on test t9100 (svn)")
Junio C Hamano
Re: [PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
Martin Langhoff
Re: [PATCH] GIT commit statistics.
Alexandre Julliard
[PATCH] gitweb: Put back shortlog instead of graphiclog in the project list.
Josh Triplett
[PATCH 2/2] Add url.<base>.pushInsteadOf: URL rewriting for push only
openbsd-misc
:
Taisto Qvist XX
Re: AMD GEODE LX-800 just works with kernel from install42.iso and kernelpanics wi...
Nico Meijer
Re: gOS Develop Kit with VIA pc-1 Processor Platform VIA C7-D
Andreas Bihlmaier
Re: jetway board sensors (Fintek F71805F)
admin
Drive a 2009 car from R799p/m
Antti Harri
Re: how to create a sha256 hash
Colocation donated by:
Syndicate