x86/paravirt: Move the Xen-only pv_cpu_ops under the PARAVIRT_XXL umbrella
Most of the paravirt ops defined in pv_cpu_ops are for Xen PV guests only. Define them only if CONFIG_PARAVIRT_XXL is set. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: xen-devel@lists.xenproject.org Cc: virtualization@lists.linux-foundation.org Cc: akataria@vmware.com Cc: rusty@rustcorp.com.au Cc: boris.ostrovsky@oracle.com Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/20180828074026.820-13-jgross@suse.com
This commit is contained in:

committed by
Thomas Gleixner

parent
40181646db
commit
9bad5658ea
@@ -143,8 +143,9 @@ static inline unsigned long __read_cr4(void)
|
||||
|
||||
#ifdef CONFIG_PARAVIRT
|
||||
#include <asm/paravirt.h>
|
||||
#else
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_PARAVIRT_XXL
|
||||
static inline unsigned long read_cr0(void)
|
||||
{
|
||||
return native_read_cr0();
|
||||
@@ -154,7 +155,9 @@ static inline void write_cr0(unsigned long x)
|
||||
{
|
||||
native_write_cr0(x);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_PARAVIRT
|
||||
static inline unsigned long read_cr2(void)
|
||||
{
|
||||
return native_read_cr2();
|
||||
@@ -178,7 +181,9 @@ static inline void write_cr3(unsigned long x)
|
||||
{
|
||||
native_write_cr3(x);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_PARAVIRT_XXL
|
||||
static inline void __write_cr4(unsigned long x)
|
||||
{
|
||||
native_write_cr4(x);
|
||||
@@ -208,7 +213,7 @@ static inline void load_gs_index(unsigned selector)
|
||||
|
||||
#endif
|
||||
|
||||
#endif/* CONFIG_PARAVIRT */
|
||||
#endif/* CONFIG_PARAVIRT_XXL */
|
||||
|
||||
static inline void clflush(volatile void *__p)
|
||||
{
|
||||
|
Reference in New Issue
Block a user