p***@xen.org
2018-10-31 17:11:15 UTC
commit ac25bf3b236943fb799945c2bece779ba67bc44e
Author: Roger Pau Monné <***@citrix.com>
AuthorDate: Wed Oct 31 17:58:15 2018 +0100
Commit: Jan Beulich <***@suse.com>
CommitDate: Wed Oct 31 17:58:15 2018 +0100
x86/pvh: fix TSC mode setup for PVH Dom0
A PVH Dom0 might use TSC scaling or other HVM specific TSC
adjustments, so only short-circuit the TSC setup for a classic PV
Dom0.
Signed-off-by: Roger Pau Monné <***@citrix.com>
Acked-by: Jan Beulich <***@suse.com>
---
xen/arch/x86/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index 553698d4ab..03f792e7e5 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -2125,7 +2125,7 @@ void tsc_set_info(struct domain *d,
{
ASSERT(!is_system_domain(d));
- if ( is_hardware_domain(d) )
+ if ( is_pv_domain(d) && is_hardware_domain(d) )
{
d->arch.vtsc = 0;
return;
--
generated by git-patchbot for /home/xen/git/xen.git#staging
Author: Roger Pau Monné <***@citrix.com>
AuthorDate: Wed Oct 31 17:58:15 2018 +0100
Commit: Jan Beulich <***@suse.com>
CommitDate: Wed Oct 31 17:58:15 2018 +0100
x86/pvh: fix TSC mode setup for PVH Dom0
A PVH Dom0 might use TSC scaling or other HVM specific TSC
adjustments, so only short-circuit the TSC setup for a classic PV
Dom0.
Signed-off-by: Roger Pau Monné <***@citrix.com>
Acked-by: Jan Beulich <***@suse.com>
---
xen/arch/x86/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index 553698d4ab..03f792e7e5 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -2125,7 +2125,7 @@ void tsc_set_info(struct domain *d,
{
ASSERT(!is_system_domain(d));
- if ( is_hardware_domain(d) )
+ if ( is_pv_domain(d) && is_hardware_domain(d) )
{
d->arch.vtsc = 0;
return;
--
generated by git-patchbot for /home/xen/git/xen.git#staging