qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Eric Auger <eric.auger@linaro.org>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] VFIO use of HOST_PAGE_ALIGN
Date: Tue, 26 May 2015 09:22:34 -0600	[thread overview]
Message-ID: <1432653754.11375.395.camel@redhat.com> (raw)
In-Reply-To: <CAEgOgz6BtAWC_LPxP1rO3vQWAKtsza4j39mUZhxjw9xO9ZX23A@mail.gmail.com>

[cc +alexey]

On Mon, 2015-05-25 at 00:48 -0700, Peter Crosthwaite wrote:
> Hi Alex and all,
> 
> I am working on a patch series to enable multiple CPU architectures to
> run at once. It's a long story, but I have hit a snag in hw/vfio/pci.c
> which AFAICS is the only in-tree system-mode use of HOST_PAGE_ALIGN
> (all usermode code is a non-issue as not looking to support user-mode
> multi-arch yet).
> 
> The problem I face, is that this macro depends on translate-all.c's
> qemu_host_page_size which in turn, depends on TARGET_PAGE_SIZE. I'm
> hoping that one day, TARGET_PAGE_SIZE will be a variable and the users
> of it will know to get the correct value depending on their CPU
> specific code location. vfio is the only one I can't handle. My
> knowledge on vfio is near-0, but my thinking is, since this is not
> arch specific code can we instead use the raw host page alignment
> rather that the CPU arch specific one?

I think we could replace our use of HOST_PAGE_ALIGN with something based
only on the host's getpagesize().  I don't see that we really care about
the target page size for this usage.  Alexey, I think you're the only
arch where host and target page sizes can actually be different, do you
agree?  Thanks,

Alex

  reply	other threads:[~2015-05-26 15:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25  7:48 [Qemu-devel] VFIO use of HOST_PAGE_ALIGN Peter Crosthwaite
2015-05-26 15:22 ` Alex Williamson [this message]
2015-05-31 13:34   ` Alexey Kardashevskiy
2015-05-31 18:27     ` Peter Crosthwaite
2015-06-03 11:16       ` Alexey Kardashevskiy
2015-06-03 17:53         ` Peter Crosthwaite
2015-06-04  6:57           ` Alexey Kardashevskiy

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=1432653754.11375.395.camel@redhat.com \
    --to=alex.williamson@redhat.com \
    --cc=aik@ozlabs.ru \
    --cc=eric.auger@linaro.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.crosthwaite@xilinx.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).