qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Jérémy Fanguède" <j.fanguede@virtualopensystems.com>
To: qemu-devel@nongnu.org
Cc: "Jérémy Fanguède" <j.fanguede@virtualopensystems.com>,
	tech@virtualopensystems.com, kvmarm@lists.cs.columbia.edu
Subject: [Qemu-devel] [RFC 1/4] linux-headers update
Date: Tue,  5 May 2015 11:13:44 +0200	[thread overview]
Message-ID: <1430817227-6278-2-git-send-email-j.fanguede@virtualopensystems.com> (raw)
In-Reply-To: <1430817227-6278-1-git-send-email-j.fanguede@virtualopensystems.com>

Add KVM_FLUSH_DCACHE_GPA ioctl.

Signed-off-by: Jérémy Fanguède <j.fanguede@virtualopensystems.com>
---
 linux-headers/linux/kvm.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
index b96d978..81d2f64 100644
--- a/linux-headers/linux/kvm.h
+++ b/linux-headers/linux/kvm.h
@@ -978,6 +978,11 @@ struct kvm_arm_device_addr {
 	__u64 addr;
 };
 
+struct kvm_mem_addr {
+	__u64 addr;
+	__u32 len;
+};
+
 /*
  * Device control API, available with KVM_CAP_DEVICE_CTRL
  */
@@ -1199,6 +1204,7 @@ struct kvm_s390_ucas_mapping {
 /* Available with KVM_CAP_S390_IRQ_STATE */
 #define KVM_S390_SET_IRQ_STATE	  _IOW(KVMIO, 0xb5, struct kvm_s390_irq_state)
 #define KVM_S390_GET_IRQ_STATE	  _IOW(KVMIO, 0xb6, struct kvm_s390_irq_state)
+#define KVM_FLUSH_DCACHE_GPA     _IOW(KVMIO,  0xb7, struct kvm_mem_addr)
 
 #define KVM_DEV_ASSIGN_ENABLE_IOMMU	(1 << 0)
 #define KVM_DEV_ASSIGN_PCI_2_3		(1 << 1)
-- 
1.9.1

  reply	other threads:[~2015-05-05  9:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05  9:13 [Qemu-devel] [RFC 0/4] arm/arm64: KVM: Get around cache incoherency Jérémy Fanguède
2015-05-05  9:13 ` Jérémy Fanguède [this message]
2015-05-05  9:13 ` [Qemu-devel] [RFC 2/4] target-arm/kvm: Flush data cache support Jérémy Fanguède
2015-05-05  9:13 ` [Qemu-devel] [RFC 3/4] kvm-all: Pre-run cache coherency maintenance Jérémy Fanguède
2015-05-05  9:13 ` [Qemu-devel] [RFC 4/4] exec: Flush data cache when needed Jérémy Fanguède

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=1430817227-6278-2-git-send-email-j.fanguede@virtualopensystems.com \
    --to=j.fanguede@virtualopensystems.com \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=qemu-devel@nongnu.org \
    --cc=tech@virtualopensystems.com \
    /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).