From: Will Deacon <will.deacon@arm.com>
To: Andreas Herrmann <andreas.herrmann@caviumnetworks.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH 4/5] kvmtool: Save datamatch as little endian in {add,del}_event
Date: Wed, 17 Jun 2015 11:03:27 +0100 [thread overview]
Message-ID: <20150617100326.GB6303@arm.com> (raw)
In-Reply-To: <20150617071749.GA19051@alberich>
On Wed, Jun 17, 2015 at 08:17:49AM +0100, Andreas Herrmann wrote:
> On Tue, Jun 16, 2015 at 06:17:14PM +0100, Will Deacon wrote:
> > On Mon, Jun 15, 2015 at 12:49:45PM +0100, Andreas Herrmann wrote:
> > > W/o dedicated endianess it's impossible to find reliably a match
> > > e.g. in kernel/virt/kvm/eventfd.c ioeventfd_in_range.
> >
> > Hmm, but shouldn't this be the endianness of the guest, rather than just
> > forcing things to little-endian?
>
> With my patch and following adaption to
> ioeventfd_in_range (in virt/kvm/eventfd.c):
[...]
> But now I see, w/o a correponding kernel change the patch shouldn't
> be merged.
Digging a bit deeper, I think it's up to the architecture KVM backend
(in the kernel) to present the mmio buffer to core kvm in the host
endianness.
For example, on ARM, we honour the endianness of the vcpu in
vcpu_data_guest_to_host when we populate the buffer for kvm_io_bus_write
(which is what ends up in the ioeventfd code).
I couldn't find equivalent code for MIPs, but I may have been looking in
the wrong place.
Will
next prev parent reply other threads:[~2015-06-17 10:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-15 11:49 [PATCH 0/5] kvmtool: Misc fixes Andreas Herrmann
2015-06-15 11:49 ` [PATCH 1/5] kvmtool: Fix compile error on MIPS Andreas Herrmann
2015-06-15 11:49 ` [PATCH 2/5] kvmtool: Fix regression introduced with d2a7ddff4 Andreas Herrmann
2015-06-15 11:49 ` [PATCH 3/5] kvmtool: Register each guest memory bank as vhost_memory_region Andreas Herrmann
2015-06-15 11:49 ` [PATCH 4/5] kvmtool: Save datamatch as little endian in {add,del}_event Andreas Herrmann
2015-06-16 17:17 ` Will Deacon
2015-06-17 7:17 ` Andreas Herrmann
2015-06-17 10:03 ` Will Deacon [this message]
2015-06-15 11:49 ` [PATCH 5/5] kvmtool: Fix length of ioevent for VIRTIO_PCI_QUEUE_NOTIFY Andreas Herrmann
2015-06-16 17:29 ` [PATCH 0/5] kvmtool: Misc fixes Will Deacon
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=20150617100326.GB6303@arm.com \
--to=will.deacon@arm.com \
--cc=andreas.herrmann@caviumnetworks.com \
--cc=kvm@vger.kernel.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