qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Tushar Jagad <tushar.jagad@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, marc.zyngier@arm.com, patches@apm.com,
	tushar.jagad@linaro.org, kvmarm@lists.cs.columbia.edu,
	christoffer.dall@linaro.org
Subject: [Qemu-devel] [PATCH RFC 1/3] linux-headers: sync'd kernel headers for arm/arm64
Date: Wed,  9 Sep 2015 08:42:10 +0000	[thread overview]
Message-ID: <1441788132-6286-2-git-send-email-tushar.jagad@linaro.org> (raw)
In-Reply-To: <1441788132-6286-1-git-send-email-tushar.jagad@linaro.org>

Sync arm/arm64 headers for bringing in support for cross cpu.

Signed-off-by: Tushar Jagad <tushar.jagad@linaro.org>
---
 linux-headers/asm-arm64/kvm.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm-arm64/kvm.h
index c8abf25..94d1fc9 100644
--- a/linux-headers/asm-arm64/kvm.h
+++ b/linux-headers/asm-arm64/kvm.h
@@ -88,6 +88,13 @@ struct kvm_regs {
 #define KVM_ARM_VCPU_POWER_OFF		0 /* CPU is started in OFF state */
 #define KVM_ARM_VCPU_EL1_32BIT		1 /* CPU running a 32bit VM */
 #define KVM_ARM_VCPU_PSCI_0_2		2 /* CPU uses PSCI v0.2 */
+#define KVM_ARM_VCPU_NUM_BPTS		3 /* Number of breakpoints supported */
+#define KVM_ARM_VCPU_NUM_WPTS		7 /* Number of watchpoints supported */
+
+#define KVM_ARM_VCPU_BPTS_FEATURES_IDX	0
+#define KVM_ARM_VCPU_WPTS_FEATURES_IDX	0
+#define KVM_ARM_VCPU_BPTS_MASK		0x00000078
+#define KVM_ARM_VCPU_WPTS_MASK		0x00000780
 
 struct kvm_vcpu_init {
 	__u32 target;
@@ -193,7 +200,9 @@ struct kvm_arch_memory_slot {
  * and only here to provide source code level compatibility with older
  * userland. The highest SPI number can be set via KVM_DEV_ARM_VGIC_GRP_NR_IRQS.
  */
+#ifndef __KERNEL__
 #define KVM_ARM_IRQ_GIC_MAX		127
+#endif
 
 /* One single KVM irqchip, ie. the VGIC */
 #define KVM_NR_IRQCHIPS          1
-- 
2.4.3

  reply	other threads:[~2015-09-09  8:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09  8:42 [Qemu-devel] [PATCH RFC 0/3] arm64: cross cpu support Tushar Jagad
2015-09-09  8:42 ` Tushar Jagad [this message]
2015-09-09  8:42 ` [Qemu-devel] [PATCH RFC 2/3] arm: cross cpu: add new properties for arm cpu Tushar Jagad
2015-09-09  8:42 ` [Qemu-devel] [PATCH RFC 3/3] arm64: pass breakpoint/watchpoint info for target cpu Tushar Jagad

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=1441788132-6286-2-git-send-email-tushar.jagad@linaro.org \
    --to=tushar.jagad@linaro.org \
    --cc=christoffer.dall@linaro.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=marc.zyngier@arm.com \
    --cc=patches@apm.com \
    --cc=peter.maydell@linaro.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).