From: Jan Kiszka <jan.kiszka@web.de>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Anthony Liguori <anthony@codemonkey.ws>,
avi@redhat.com, mtosatti@redhat.com, gleb@redhat.com,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [PATCH for-1.2 1/2] linux-headers: update asm/kvm_para.h to 3.6
Date: Mon, 27 Aug 2012 08:22:48 +0200 [thread overview]
Message-ID: <503B1238.4060904@web.de> (raw)
In-Reply-To: <ec54fac95b3ac09e669ac5c30f2231c280942e83.1345996760.git.mst@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]
On 2012-08-26 17:59, Michael S. Tsirkin wrote:
> Update asm-x96/kvm_para.h to version present in Linux 3.6.
Nope, we have update-linux-headers.sh for this. Just run it again
3.6-rcX, grab the result, and mention the source (release version or
kvm.git hash).
Jan
> This is needed for the new PV EOI feature.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> linux-headers/asm-x86/kvm_para.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86/kvm_para.h
> index f2ac46a..a1c3d72 100644
> --- a/linux-headers/asm-x86/kvm_para.h
> +++ b/linux-headers/asm-x86/kvm_para.h
> @@ -22,6 +22,7 @@
> #define KVM_FEATURE_CLOCKSOURCE2 3
> #define KVM_FEATURE_ASYNC_PF 4
> #define KVM_FEATURE_STEAL_TIME 5
> +#define KVM_FEATURE_PV_EOI 6
>
> /* The last 8 bits are used to indicate how to interpret the flags field
> * in pvclock structure. If no bits are set, all flags are ignored.
> @@ -37,6 +38,7 @@
> #define MSR_KVM_SYSTEM_TIME_NEW 0x4b564d01
> #define MSR_KVM_ASYNC_PF_EN 0x4b564d02
> #define MSR_KVM_STEAL_TIME 0x4b564d03
> +#define MSR_KVM_PV_EOI_EN 0x4b564d04
>
> struct kvm_steal_time {
> __u64 steal;
> @@ -89,5 +91,10 @@ struct kvm_vcpu_pv_apf_data {
> __u32 enabled;
> };
>
> +#define KVM_PV_EOI_BIT 0
> +#define KVM_PV_EOI_MASK (0x1 << KVM_PV_EOI_BIT)
> +#define KVM_PV_EOI_ENABLED KVM_PV_EOI_MASK
> +#define KVM_PV_EOI_DISABLED 0x0
> +
>
> #endif /* _ASM_X86_KVM_PARA_H */
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Jan Kiszka <jan.kiszka@web.de>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: gleb@redhat.com, kvm@vger.kernel.org, mtosatti@redhat.com,
qemu-devel@nongnu.org, avi@redhat.com,
Anthony Liguori <anthony@codemonkey.ws>
Subject: Re: [Qemu-devel] [PATCH for-1.2 1/2] linux-headers: update asm/kvm_para.h to 3.6
Date: Mon, 27 Aug 2012 08:22:48 +0200 [thread overview]
Message-ID: <503B1238.4060904@web.de> (raw)
In-Reply-To: <ec54fac95b3ac09e669ac5c30f2231c280942e83.1345996760.git.mst@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]
On 2012-08-26 17:59, Michael S. Tsirkin wrote:
> Update asm-x96/kvm_para.h to version present in Linux 3.6.
Nope, we have update-linux-headers.sh for this. Just run it again
3.6-rcX, grab the result, and mention the source (release version or
kvm.git hash).
Jan
> This is needed for the new PV EOI feature.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> linux-headers/asm-x86/kvm_para.h | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/linux-headers/asm-x86/kvm_para.h b/linux-headers/asm-x86/kvm_para.h
> index f2ac46a..a1c3d72 100644
> --- a/linux-headers/asm-x86/kvm_para.h
> +++ b/linux-headers/asm-x86/kvm_para.h
> @@ -22,6 +22,7 @@
> #define KVM_FEATURE_CLOCKSOURCE2 3
> #define KVM_FEATURE_ASYNC_PF 4
> #define KVM_FEATURE_STEAL_TIME 5
> +#define KVM_FEATURE_PV_EOI 6
>
> /* The last 8 bits are used to indicate how to interpret the flags field
> * in pvclock structure. If no bits are set, all flags are ignored.
> @@ -37,6 +38,7 @@
> #define MSR_KVM_SYSTEM_TIME_NEW 0x4b564d01
> #define MSR_KVM_ASYNC_PF_EN 0x4b564d02
> #define MSR_KVM_STEAL_TIME 0x4b564d03
> +#define MSR_KVM_PV_EOI_EN 0x4b564d04
>
> struct kvm_steal_time {
> __u64 steal;
> @@ -89,5 +91,10 @@ struct kvm_vcpu_pv_apf_data {
> __u32 enabled;
> };
>
> +#define KVM_PV_EOI_BIT 0
> +#define KVM_PV_EOI_MASK (0x1 << KVM_PV_EOI_BIT)
> +#define KVM_PV_EOI_ENABLED KVM_PV_EOI_MASK
> +#define KVM_PV_EOI_DISABLED 0x0
> +
>
> #endif /* _ASM_X86_KVM_PARA_H */
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]
next prev parent reply other threads:[~2012-08-27 6:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-26 15:59 [PATCH for-1.2 0/2] migrate PV EOI MSR Michael S. Tsirkin
2012-08-26 15:59 ` [Qemu-devel] " Michael S. Tsirkin
2012-08-26 15:59 ` [PATCH for-1.2 1/2] linux-headers: update asm/kvm_para.h to 3.6 Michael S. Tsirkin
2012-08-26 15:59 ` [Qemu-devel] " Michael S. Tsirkin
2012-08-27 6:22 ` Jan Kiszka [this message]
2012-08-27 6:22 ` Jan Kiszka
2012-08-26 15:59 ` [PATCH for-1.2 2/2] kvm: get/set PV EOI MSR Michael S. Tsirkin
2012-08-26 15:59 ` [Qemu-devel] " Michael S. Tsirkin
2012-08-27 6:20 ` [PATCH for-1.2 0/2] migrate " Jan Kiszka
2012-08-27 6:20 ` [Qemu-devel] " Jan Kiszka
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=503B1238.4060904@web.de \
--to=jan.kiszka@web.de \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.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.