From: Paolo Bonzini <pbonzini@redhat.com>
To: Wanpeng Li <kernellwp@gmail.com>
Cc: kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH kvm-unit-tests] x86: tsc: add test for RDTSCP
Date: Fri, 13 Nov 2015 10:23:46 +0100 [thread overview]
Message-ID: <5645AC22.2020204@redhat.com> (raw)
In-Reply-To: <CANRm+CycYTvrVARH_aOyB3KYTu9=zYR5-PfkGr3VrdnewEEnhw@mail.gmail.com>
On 13/11/2015 02:48, Wanpeng Li wrote:
> > diff --git a/x86/unittests.cfg b/x86/unittests.cfg
> > index ac652fc..fd7e9b2 100644
> > --- a/x86/unittests.cfg
> > +++ b/x86/unittests.cfg
> > @@ -114,6 +114,7 @@ file = sieve.flat
> >
> > [tsc]
> > file = tsc.flat
> > +extra_params = -cpu kvm64,+rdtscp
> >
> > [tsc_adjust]
> > file = tsc_adjust.flat
>
> When I run cpuid tool in a real linux guest, the rdtscp, tsc_adjust,
> tsc deadline timer are present, however, kvm-unit-tests always report
> these features are not detected, what is the issue here?
Your guest is probably run with some "-cpu" option, while
kvm-unit-tests' x86/run script doesn't add any. This is why I needed
the extra_params line above.
Paolo
prev parent reply other threads:[~2015-11-13 9:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-12 11:12 [PATCH kvm-unit-tests] x86: tsc: add test for RDTSCP Paolo Bonzini
2015-11-13 1:42 ` Wanpeng Li
2015-11-13 1:48 ` Wanpeng Li
2015-11-13 9:23 ` Paolo Bonzini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5645AC22.2020204@redhat.com \
--to=pbonzini@redhat.com \
--cc=kernellwp@gmail.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.