All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/sysctl: Hide hvm_directio if hvm is not available
@ 2015-11-26 17:02 Andrew Cooper
  2015-11-27  8:31 ` Jan Beulich
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Cooper @ 2015-11-26 17:02 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Jan Beulich

If HVM support unavailable, advertising hvm_directio is misleading.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
---
 xen/arch/x86/sysctl.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/sysctl.c b/xen/arch/x86/sysctl.c
index 58cbd70..c440c93 100644
--- a/xen/arch/x86/sysctl.c
+++ b/xen/arch/x86/sysctl.c
@@ -77,9 +77,11 @@ void arch_do_physinfo(xen_sysctl_physinfo_t *pi)
     memcpy(pi->hw_cap, boot_cpu_data.x86_capability,
            min(sizeof(pi->hw_cap), sizeof(boot_cpu_data.x86_capability)));
     if ( hvm_enabled )
+    {
         pi->capabilities |= XEN_SYSCTL_PHYSCAP_hvm;
-    if ( iommu_enabled )
-        pi->capabilities |= XEN_SYSCTL_PHYSCAP_hvm_directio;
+        if ( iommu_enabled )
+            pi->capabilities |= XEN_SYSCTL_PHYSCAP_hvm_directio;
+    }
 }
 
 long arch_do_sysctl(
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-12-11 13:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26 17:02 [PATCH] x86/sysctl: Hide hvm_directio if hvm is not available Andrew Cooper
2015-11-27  8:31 ` Jan Beulich
2015-12-01 11:37   ` [PATCH] public/sysctl: Clarifications to XEN_SYSCTL_PHYSCAP_hvm_directio Andrew Cooper
2015-12-01 13:35     ` Jan Beulich
2015-12-10 20:07       ` Andrew Cooper
2015-12-11  7:53         ` Jan Beulich
2015-12-11 10:20           ` Andrew Cooper
2015-12-11 10:33             ` Jan Beulich
2015-12-11 13:44               ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.