From: Jan Kiszka <jan.kiszka@siemens.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>, kvm <kvm@vger.kernel.org>,
"Nadav Har'El" <nyh@math.technion.ac.il>,
"Nakajima, Jun" <jun.nakajima@intel.com>
Subject: Re: [PATCH] KVM: nVMX: Add preemption timer support
Date: Wed, 13 Mar 2013 16:00:52 +0100 [thread overview]
Message-ID: <514094A4.1030507@siemens.com> (raw)
In-Reply-To: <51409249.9010308@siemens.com>
On 2013-03-13 15:50, Jan Kiszka wrote:
> On 2013-03-13 15:44, Gleb Natapov wrote:
>> On Wed, Mar 13, 2013 at 11:31:24AM +0100, Jan Kiszka wrote:
>>> Provided the host has this feature, it's straightforward to offer it to
>>> the guest as well. We just need to load to timer value on L2 entry if
>>> the feature was enabled by L1 and watch out for the corresponding exit
>>> reason.
>>>
>>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
>>> ---
>>> arch/x86/include/asm/vmx.h | 3 +++
>>> arch/x86/include/uapi/asm/vmx.h | 5 +++--
>>> arch/x86/kvm/vmx.c | 17 ++++++++++++++---
>>> 3 files changed, 20 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/arch/x86/include/asm/vmx.h b/arch/x86/include/asm/vmx.h
>>> index 056bda5..fc1c313 100644
>>> --- a/arch/x86/include/asm/vmx.h
>>> +++ b/arch/x86/include/asm/vmx.h
>>> @@ -70,6 +70,7 @@
>>> #define PIN_BASED_EXT_INTR_MASK 0x00000001
>>> #define PIN_BASED_NMI_EXITING 0x00000008
>>> #define PIN_BASED_VIRTUAL_NMIS 0x00000020
>>> +#define PIN_BASED_VMX_PREEMPTION_TIMER 0x00000040
>>>
>>> #define PIN_BASED_ALWAYSON_WITHOUT_TRUE_MSR 0x00000016
>>>
>>> @@ -95,6 +96,7 @@
>>>
>>> #define VM_ENTRY_ALWAYSON_WITHOUT_TRUE_MSR 0x000011ff
>>>
>>> +#define VMX_MISC_PREEMPTION_TIMER_RATE_MASK 0x0000001f
>>> #define VMX_MISC_SAVE_EFER_LMA 0x00000020
>> What is this patch against? I do not see VMX_MISC_SAVE_EFER_LMA in
>> kvm.git queue.
>
> Against my queue after adding support for nested EFER.LMA saving, sorry.
> I thought I posted that patch already, but I didn't. Will reorder (and
> send those other bits as well at that chance).
In fact, the other way around is simpler: posting the missing patch.
Jan
--
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2013-03-13 15:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-13 10:30 [PATCH 1/2] KVM: nVMX: Clean up and fix pin-based execution controls Jan Kiszka
2013-03-13 10:31 ` [PATCH] KVM: nVMX: Add preemption timer support Jan Kiszka
2013-03-13 12:46 ` Paolo Bonzini
2013-03-13 14:44 ` Gleb Natapov
2013-03-13 14:50 ` Jan Kiszka
2013-03-13 15:00 ` Jan Kiszka [this message]
2013-03-14 8:05 ` Gleb Natapov
2013-03-13 11:48 ` [PATCH 1/2] KVM: nVMX: Clean up and fix pin-based execution controls Paolo Bonzini
2013-03-13 14:21 ` Gleb Natapov
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=514094A4.1030507@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=gleb@redhat.com \
--cc=jun.nakajima@intel.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=nyh@math.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox