Re: Emulating LWZU Instruction for e500 powerpc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux