qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] MIPS: reading kernel memory when guest Linux is in user


From: Peter Maydell
Subject: Re: [Qemu-devel] MIPS: reading kernel memory when guest Linux is in user mode
Date: Thu, 13 Aug 2015 16:34:56 +0100

On 13 August 2015 at 16:23, Igor R <address@hidden> wrote:
> Hello,
>
> I try to use cpu_memory_rw_debug() to read from 0x8xxxxxxx kernel virtual
> address, when the guest is in user mode. Obviously, it fails.
> Is it possible to modify some control registers to allow such an access? I
> tried to set/clear the kernel mode bits in CP0_Status, but it doesn't help.

Rather than messing with the current state of the CPU, you
probably want to use the helper functions for doing load/store
to guest memory with a particular MMU index.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]