[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why guest physical addresses are not the same as the corresponding h
From: |
Paolo Bonzini |
Subject: |
Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks! |
Date: |
Wed, 14 Oct 2020 10:28:05 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
On 14/10/20 00:40, harry harry wrote:
> Q1: Is there any file like ``/proc/pid/pagemap'' to record the
> mappings between GPAs and HVAs in the host OS?
No, there isn't.
> Q2: Seems that there might be extra overhead (e.g., synchronization
> between EPT tables and host regular page tables; maintaining extra
> regular page tables and data structures), which is caused by the extra
> translation between GPAs to HVAs via memslots. Why doesn't KVM
> directly use GPAs as HVAs and leverage extended/nested page tables to
> translate HVAs (i.e., GPAs) to HPAs?
See my other answer. What you are saying is simply not possible.
Paolo
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, (continued)
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, Sean Christopherson, 2020/10/13
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, harry harry, 2020/10/13
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, harry harry, 2020/10/13
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, Paolo Bonzini, 2020/10/13
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, harry harry, 2020/10/13
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, Paolo Bonzini, 2020/10/14
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, Maxim Levitsky, 2020/10/14
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, harry harry, 2020/10/14
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, Sean Christopherson, 2020/10/13
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, harry harry, 2020/10/13
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!,
Paolo Bonzini <=
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, harry harry, 2020/10/14
- Re: Why guest physical addresses are not the same as the corresponding host virtual addresses in QEMU/KVM? Thanks!, harry harry, 2020/10/13