From: Paolo Bonzini <pbonzini@redhat.com>
To: Nadav Amit <namit@cs.technion.ac.il>, gleb@kernel.org
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH kvm-unit-tests 2/2] x86: Check deadline counter is cleared after interrupt
Date: Tue, 19 Aug 2014 12:06:07 +0200 [thread overview]
Message-ID: <53F3218F.8070703@redhat.com> (raw)
In-Reply-To: <1408391038-2930-2-git-send-email-namit@cs.technion.ac.il>
Il 18/08/2014 21:43, Nadav Amit ha scritto:
> Once the local-apic timer is configured to use TSC deadline, the deadline
> should be cleared after the deadline passes. This patch adds a check of this
> behavior.
>
> Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
> ---
> x86/apic.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/x86/apic.c b/x86/apic.c
> index 487c248..3f463a5 100644
> --- a/x86/apic.c
> +++ b/x86/apic.c
> @@ -35,6 +35,7 @@ static void start_tsc_deadline_timer(void)
> wrmsr(MSR_IA32_TSCDEADLINE, rdmsr(MSR_IA32_TSC));
> asm volatile ("nop");
> report("tsc deadline timer", tdt_count == 1);
> + report("tsc deadline timer clearing", rdmsr(MSR_IA32_TSCDEADLINE) == 0);
> }
>
> static int enable_tsc_deadline_timer(void)
>
Thanks, applying this patch.
Paolo
next prev parent reply other threads:[~2014-08-19 10:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-18 19:42 [PATCH] KVM: x86: Clear apic tsc-deadline after deadline Nadav Amit
2014-08-18 19:43 ` [PATCH kvm-unit-tests 1/2] x86: Use host CPU parameter for apic test Nadav Amit
2014-08-18 19:43 ` [PATCH kvm-unit-tests 2/2] x86: Check deadline counter is cleared after interrupt Nadav Amit
2014-08-19 10:06 ` Paolo Bonzini [this message]
2014-08-19 9:51 ` [PATCH kvm-unit-tests 1/2] x86: Use host CPU parameter for apic test Paolo Bonzini
2014-08-19 13:18 ` Eduardo Habkost
2014-08-19 13:23 ` Paolo Bonzini
2014-08-19 10:36 ` [PATCH] KVM: x86: Clear apic tsc-deadline after deadline Paolo Bonzini
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=53F3218F.8070703@redhat.com \
--to=pbonzini@redhat.com \
--cc=gleb@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=namit@cs.technion.ac.il \
/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.