p***@xen.org
2018-10-31 17:11:35 UTC
commit ce47462cb4d049971aedec51c1105673be41adce
Author: Roger Pau Monné <***@citrix.com>
AuthorDate: Wed Oct 31 17:59:26 2018 +0100
Commit: Jan Beulich <***@suse.com>
CommitDate: Wed Oct 31 17:59:26 2018 +0100
x86/pvh: allow PVH Dom0 to use the debug IO port console
Force trapping accesses to IO port 0xe9 for a PVH Dom0, so it can
print to the HVM debug console.
Signed-off-by: Roger Pau Monné <***@citrix.com>
Reviewed-by: Wei Liu <***@citrix.com>
Acked-by: Jan Beulich <***@suse.com>
---
xen/arch/x86/dom0_build.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/xen/arch/x86/dom0_build.c b/xen/arch/x86/dom0_build.c
index fe73cef899..038e37132a 100644
--- a/xen/arch/x86/dom0_build.c
+++ b/xen/arch/x86/dom0_build.c
@@ -433,6 +433,12 @@ int __init dom0_setup_permissions(struct domain *d)
rc |= ioports_deny_access(d, pmtmr_ioport, pmtmr_ioport + 3);
/* PCI configuration space (NB. 0xcf8 has special treatment). */
rc |= ioports_deny_access(d, 0xcfc, 0xcff);
+#ifdef CONFIG_HVM
+ if ( is_hvm_domain(d) )
+ /* HVM debug console IO port. */
+ rc |= ioports_deny_access(d, XEN_HVM_DEBUGCONS_IOPORT,
+ XEN_HVM_DEBUGCONS_IOPORT);
+#endif
/* Command-line I/O ranges. */
process_dom0_ioports_disable(d);
--
generated by git-patchbot for /home/xen/git/xen.git#staging
Author: Roger Pau Monné <***@citrix.com>
AuthorDate: Wed Oct 31 17:59:26 2018 +0100
Commit: Jan Beulich <***@suse.com>
CommitDate: Wed Oct 31 17:59:26 2018 +0100
x86/pvh: allow PVH Dom0 to use the debug IO port console
Force trapping accesses to IO port 0xe9 for a PVH Dom0, so it can
print to the HVM debug console.
Signed-off-by: Roger Pau Monné <***@citrix.com>
Reviewed-by: Wei Liu <***@citrix.com>
Acked-by: Jan Beulich <***@suse.com>
---
xen/arch/x86/dom0_build.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/xen/arch/x86/dom0_build.c b/xen/arch/x86/dom0_build.c
index fe73cef899..038e37132a 100644
--- a/xen/arch/x86/dom0_build.c
+++ b/xen/arch/x86/dom0_build.c
@@ -433,6 +433,12 @@ int __init dom0_setup_permissions(struct domain *d)
rc |= ioports_deny_access(d, pmtmr_ioport, pmtmr_ioport + 3);
/* PCI configuration space (NB. 0xcf8 has special treatment). */
rc |= ioports_deny_access(d, 0xcfc, 0xcff);
+#ifdef CONFIG_HVM
+ if ( is_hvm_domain(d) )
+ /* HVM debug console IO port. */
+ rc |= ioports_deny_access(d, XEN_HVM_DEBUGCONS_IOPORT,
+ XEN_HVM_DEBUGCONS_IOPORT);
+#endif
/* Command-line I/O ranges. */
process_dom0_ioports_disable(d);
--
generated by git-patchbot for /home/xen/git/xen.git#staging