All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: Emulating LWZU Instruction for e500 powerpc
Date: Thu, 25 Aug 2011 16:44:12 +0000	[thread overview]
Message-ID: <4E567BDC.7060108@freescale.com> (raw)
In-Reply-To: <loom.20110819T134401-946@post.gmane.org>

On 08/25/2011 04:31 AM, Aashish Mittal wrote:
> I checked the memory by reading the guest page at the modified instruction and 
> it is the modified instruction . I think the reason i'm not getting the EXIT is 
> because the icache is not getting flushed properly. 
> I'm trying to to flush the icache entries of the guest while i'm inside the host 
> kvm . I'm trying to use flush_icache_range(pc , pc+ 4 ) where this pc  is the 
> guest pc eaddr where i'm modifying the instruction . 
> 
> Do you have any idea how to flush the guest entries while i'm inside the host os 
> given the guest eaddr of the address where i'm trying to patch the instruction . 

What address are you using to actually do the modification?  You can't
flush with an address on which you can't do normal memory accesses from
the current context.  You need an effective address that is valid in the
host.

-Scott


      parent reply	other threads:[~2011-08-25 16:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19 11:45 Emulating LWZU Instruction for e500 powerpc Aashish Mittal
2011-08-24 22:34 ` Alexander Graf
2011-08-24 22:34   ` Alexander Graf
     [not found]   ` <CAAonZCFpf9Nv1deAafSagDPjRoLWa3haAuH4Puz1Dksmnd62ng@mail.gmail.com>
2011-08-25 14:44     ` Alexander Graf
2011-08-25 14:44       ` Alexander Graf
2011-08-25  9:31 ` Aashish Mittal
2011-08-25 16:44 ` Scott Wood [this message]

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=4E567BDC.7060108@freescale.com \
    --to=scottwood@freescale.com \
    --cc=kvm-ppc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.