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 0/4] arm/arm64: KVM: Get around cache incoherency
Date: Tue,  5 May 2015 11:13:43 +0200	[thread overview]
Message-ID: <1430817227-6278-1-git-send-email-j.fanguede@virtualopensystems.com> (raw)

This RFC series shows how we can solve cache incohenrency issues on
ARM/ARM64. This implementation uses an ioctl that flushes the data
cache for a given range of the guest physical memory, this possible
solution was already broached in the previous discussion [1][2].

Each access (read or write) to the guest memory that could lead to
inconsistency is flushed if needed. A light optimization is done to
minimize the ioctl call.

Currently tested with the following devices: e1000, megasas,
lsi53c895a, nec-usb-xhci, usb-ehci (with usb-host, usb-tablet, usb-kbd
and usb-mouse), which were failling with KVM and now work fine with
this patch.

The kernel needs this patch: 
[RFC] ARM/ARM64: KVM: Implement KVM_FLUSH_DCACHE_GPA ioctl

[1] https://lists.cs.columbia.edu/pipermail/kvmarm/2015-February/013593.html
[2] https://lists.nongnu.org/archive/html/qemu-devel/2015-03/msg01254.html

Jérémy Fanguède (4):
  linux-headers update
  target-arm/kvm: Flush data cache support
  kvm-all: Pre-run cache coherency maintenance
  exec: Flush data cache when needed

 exec.c                    | 19 ++++++++++++++++++
 include/sysemu/kvm.h      |  3 +++
 kvm-all.c                 |  1 +
 linux-headers/linux/kvm.h |  6 ++++++
 stubs/kvm.c               |  9 +++++++++
 target-arm/kvm.c          | 51 +++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 89 insertions(+)

-- 
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 Jérémy Fanguède [this message]
2015-05-05  9:13 ` [Qemu-devel] [RFC 1/4] linux-headers update Jérémy Fanguède
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-1-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).