[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/16] exec.c: Allow target CPUs to define multi
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH 02/16] exec.c: Allow target CPUs to define multiple AddressSpaces |
Date: |
Mon, 9 Nov 2015 11:30:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 05/11/2015 19:15, Peter Maydell wrote:
> Allow multiple calls to cpu_address_space_init(); each
> call adds an entry to the cpu->ases array at the specified
> index. It is up to the target-specific CPU code to actually use
> these extra address spaces.
>
> Since this multiple AddressSpace support won't work with
> KVM, add an assertion to avoid confusing failures.
Actually it won't work _now_ with KVM, but it could.
It would be a good idea to map the multiple CPU AddressSpaces to KVM's
own multiple address spaces. It's possible to modify i386 to do this,
using address space 0 for normal operation and address space 1 for SMM,
just like KVM.
More on this as I reply to the remainder of the series...
Paolo
> Signed-off-by: Peter Maydell <address@hidden>
[Qemu-devel] [PATCH 06/16] include/qom/cpu.h: Add new get_phys_page_asidx_debug method, Peter Maydell, 2015/11/05
[Qemu-devel] [PATCH 07/16] exec.c: Use cpu_get_phys_page_asidx_debug, Peter Maydell, 2015/11/05
[Qemu-devel] [PATCH 15/16] [RFC] hw/arm/virt: add secure memory region and UART, Peter Maydell, 2015/11/05
[Qemu-devel] [PATCH 03/16] tlb_set_page_with_attrs: Take argument specifying AddressSpace to use, Peter Maydell, 2015/11/05