WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86, hvm: Make host TscInvariant CPUID fl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86, hvm: Make host TscInvariant CPUID flag visible to guest by default.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 09 Nov 2009 11:00:18 -0800
Delivery-date: Mon, 09 Nov 2009 11:00:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1257792867 0
# Node ID e8483c7f668d9e2699c22a6502ffe20123a9ef45
# Parent  42e268da38b961ed8b9edf02308a8a85d4456bf3
x86, hvm: Make host TscInvariant CPUID flag visible to guest by default.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/libxc/xc_cpuid_x86.c |    8 ++++++++
 1 files changed, 8 insertions(+)

diff -r 42e268da38b9 -r e8483c7f668d tools/libxc/xc_cpuid_x86.c
--- a/tools/libxc/xc_cpuid_x86.c        Mon Nov 09 08:19:55 2009 +0000
+++ b/tools/libxc/xc_cpuid_x86.c        Mon Nov 09 18:54:27 2009 +0000
@@ -224,6 +224,14 @@ static void xc_cpuid_hvm_policy(
             clear_bit(X86_FEATURE_NX, regs[3]);
         break;
 
+    case 0x80000007:
+        /*
+         * Keep only TSCInvariant. This may be cleared by the hypervisor
+         * depending on guest TSC and migration settings.
+         */
+        regs[0] = regs[1] = regs[2] = 0;
+        regs[3] &= 1u<<8;
+        break;
 
     case 0x80000008:
         regs[0] &= 0x0000ffffu;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86, hvm: Make host TscInvariant CPUID flag visible to guest by default., Xen patchbot-unstable <=