Inter-revision diff: patch 2

Comparing v6 (message) to v4 (message)

--- v6
+++ v4
@@ -10,11 +10,11 @@
 	* Change code style of checking GUEST_MEM attribute in the
 	  hyperv_cc_platform_has().
 ---
- arch/x86/kernel/cc_platform.c | 8 ++++++++
- 1 file changed, 8 insertions(+)
+ arch/x86/kernel/cc_platform.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
 
 diff --git a/arch/x86/kernel/cc_platform.c b/arch/x86/kernel/cc_platform.c
-index 03bb2f343ddb..47db88c275d5 100644
+index 03bb2f343ddb..27c06b32e7c4 100644
 --- a/arch/x86/kernel/cc_platform.c
 +++ b/arch/x86/kernel/cc_platform.c
 @@ -11,6 +11,7 @@
@@ -25,13 +25,17 @@
  #include <asm/processor.h>
  
  static bool __maybe_unused intel_cc_platform_has(enum cc_attr attr)
-@@ -58,9 +59,16 @@ static bool amd_cc_platform_has(enum cc_attr attr)
+@@ -58,9 +59,20 @@ static bool amd_cc_platform_has(enum cc_attr attr)
  #endif
  }
  
 +static bool hyperv_cc_platform_has(enum cc_attr attr)
 +{
++#ifdef CONFIG_HYPERV
 +	return attr == CC_ATTR_GUEST_MEM_ENCRYPT;
++#else
++	return false;
++#endif
 +}
  
  bool cc_platform_has(enum cc_attr attr)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help