qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] CR3 difference by virsh and c program in Guest(update)


From: Dr. David Alan Gilbert
Subject: Re: [Qemu-devel] CR3 difference by virsh and c program in Guest(update)
Date: Mon, 17 Jul 2017 20:17:45 +0100
User-agent: Mutt/1.8.3 (2017-05-23)

* yu cui (address@hidden) wrote:
> I tried virsh command, it seems CR3 value returns by qemu and dmesg by a c
> program in Guest is not same ?
> The command is :
> virsh -c qemu:///system qemu-monitor-command instance-0000009d '{"execute":
> "human-monitor-command", "arguments": {"command-line": "info registers"}}'
> 
> When Guest is 4GB,  CR3 in guest is like "cr3 = 0x39a54000", while qemu
> returns "cr3 = 0x0000000139a54000", with a gap of 4GB(0x0000000100000000).
> When Guest is 8GB,  CR3 in guest is like "cr3 = 0x39a54000", while qemu
> returns "cr3 = 0x0000000239a54000", with a gap of 8GB(0x0000000200000000).
> 
> So, it seems that CR3qemu = PysicalMem + CR3guest. Is it a bug?

Is your C program reading the full 64 bits of CR3 or just the bottom 32
bits?

Dave

--
Dr. David Alan Gilbert / address@hidden / Manchester, UK



reply via email to

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