public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Izik Eidus <izike-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To: "Zhang, Xiantao" <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org,
	Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>,
	Hollis Blanchard
	<hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] Moving unalias_gfn to x86.c
Date: Thu, 22 Nov 2007 11:03:49 +0200	[thread overview]
Message-ID: <1195722229.12454.1.camel@localhost.localdomain> (raw)
In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDC9E74BE-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>


On Thu, 2007-11-22 at 17:09 +0800, Zhang, Xiantao wrote:
> Izik Eidus wrote:
> > On Thu, 2007-11-22 at 11:25 +0800, Zhang, Xiantao wrote:
> >> From: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> >> Date: Thu, 22 Nov 2007 11:20:33 +0800
> >> Subject: [PATCH] KVM Portability: moving unalias_gfn to arch.
> >> Non-x86 archs don't need this mechanism. Move it to arch, and keep
> >> its interface in common. Signed-off-by: Zhang Xiantao
> >> <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> ---
> > 
> > this is good,
> > 
> > we probably want to change
> > gfn_to_memslot() to have #ifdef kvm_x86 to call the unalias memory
> > and gfn_to_hva on x86 still must to call unalias_gfn() so it will
> > probably need a ifdef as well.
> 
> Don't know #ifdef way is acceptable. If yes, sure to do that.
> Contrarily, other archs
> can define it , and just returen original gfn instead:)
> 
ok so call to kvm_arch_gfn_to_memslot()
or something like that can be done
the same with
kvm_arch_gva_to_hva()

this both will call to kvm_gva_to_hva() that will share most of the code
...


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

  parent reply	other threads:[~2007-11-22  9:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-22  3:25 [PATCH] Moving unalias_gfn to x86.c Zhang, Xiantao
     [not found] ` <42DFA526FC41B1429CE7279EF83C6BDC9E733B-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-11-22  8:41   ` Izik Eidus
     [not found]     ` <1195720902.3438.5.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2007-11-22  9:09       ` Zhang, Xiantao
     [not found]         ` <42DFA526FC41B1429CE7279EF83C6BDC9E74BE-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-11-22  9:03           ` Izik Eidus [this message]
2007-11-22  9:10   ` Carsten Otte
2007-11-22 10:33   ` Avi Kivity

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=1195722229.12454.1.camel@localhost.localdomain \
    --to=izike-atkuwr5tajbwk0htik3j/w@public.gmane.org \
    --cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
    --cc=carsteno-tA70FqPdS9bQT0dZR+AlfA@public.gmane.org \
    --cc=hollisb-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
    --cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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