qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch 1/2] target-i386: support "invariant tsc" flag


From: Eduardo Habkost
Subject: Re: [Qemu-devel] [patch 1/2] target-i386: support "invariant tsc" flag
Date: Tue, 22 Apr 2014 22:11:54 -0300
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Apr 22, 2014 at 08:26:36PM -0400, Paolo Bonzini wrote:
> Il 22/04/2014 15:10, Marcelo Tosatti ha scritto:
> >+    case 0x80000007:
> >+        *eax = 0;
> >+        *ebx = 0;
> >+        *ecx = 0;
> >+
> >+        if (kvm_enabled()) {
> >+            *edx = env->features[FEAT_8000_0007_EDX];
> >+        } else {
> >+            *edx = 0;
> >+        }
> 
> I think TCG is able to eliminate unsupported features too before they
> get in env->features[].  Or are those patches not in yet?  Eduardo?

They are not in yet, but while they are not included this filtering
(based on TCG_*_FEATURES macros) should be done in the !kvm_enabled()
block of x86_cpu_realizefn().

-- 
Eduardo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]