[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] softmmu
From: |
Jakob Bohm |
Subject: |
Re: [Qemu-discuss] softmmu |
Date: |
Wed, 7 Oct 2015 11:18:55 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 07/10/2015 09:56, MAMEESH Rania wrote:
Does all guest memory accesses require address translation, i.e., they
all pass by the softmmu ?
Thanks for the help.
RM
They all require address translation (even in the case where
the addresses happen to end up the same).
However the address translation may be done by either of
3 virtual MMUs (listed from slowest to fastest).
- The softmmu in the qemu "translating" interpreter (kvm
accelleration not used)
- The page table virtualization done by kvm (it
reconfigures the hardware MMU to map each guest virtual
address directly to the host physical address that would
result from combining what the guest OS asks the virtual
MMU to do in terms of guest virtual address to guest
physical address mapping with what the host OS wants the
physical MMU to do in terms of mapping guest physical
addresses to host physical addresses). This only does
things when the guest OS and/or the host OS changes a
mapping.
- The double page table hardware in some CPUs, configured
by kvm so the guest OS controls a hardware virtualized
MMU, which the hardware then combines with the hardware
real MMU mapping set by the host OS.
Enjoy
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded