[PATCH v10 3/5] riscv: Allow user to set the satp mode

2023-02-02 Thread Alexandre Ghiti
RISC-V specifies multiple sizes for addressable memory and Linux probes for the machine's support at startup via the satp CSR register (done in csr.c:validate_vm). As per the specification, sv64 must support sv57, which in turn must support sv48...etc. So we can restrict machine support by simply

Re: [PATCH v3 6/6] i386: Add new CPU model SapphireRapids

2023-02-02 Thread Wang, Lei
On 2/2/2023 6:40 PM, Igor Mammedov wrote: > On Fri, 6 Jan 2023 00:38:26 -0800 > Lei Wang wrote: > >> The new CPU model mostly inherits features from Icelake-Server, while >> adding new features: >> - AMX (Advance Matrix eXtensions) >> - Bus Lock Debug Exception >> and new instructions: >> - A

[PATCH v10 4/5] riscv: Introduce satp mode hw capabilities

2023-02-02 Thread Alexandre Ghiti
Currently, the max satp mode is set with the only constraint that it must be implemented in QEMU, i.e. set in valid_vm_1_10_[32|64]. But we actually need to add another level of constraint: what the hw is actually capable of, because currently, a linux booting on a sifive-u54 boots in sv57 mode wh

[PATCH v10 5/5] riscv: Correctly set the device-tree entry 'mmu-type'

2023-02-02 Thread Alexandre Ghiti
The 'mmu-type' should reflect what the hardware is capable of so use the new satp_mode field in RISCVCPUConfig to do that. Signed-off-by: Alexandre Ghiti Reviewed-by: Andrew Jones Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Reviewed-by: Frank Chang --- hw/riscv/virt.c | 19 ++

Re: [PATCH] hostmem-file: add offset option

2023-02-02 Thread Markus Armbruster
Alexander Graf writes: > Add an option for hostmem-file to start the memory object at an offset > into the target file. This is useful if multiple memory objects reside > inside the same target file, such as a device node. > > In particular, it's useful to map guest memory directly into /dev/mem

Re: [PATCH v2] qemu-options.hx: remove stray quote

2023-02-02 Thread Philippe Mathieu-Daudé
On 2/2/23 23:31, John Snow wrote: Signed-off-by: John Snow --- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-options.hx b/qemu-options.hx index d59d19704bc..52d477547f5 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -1606,7 +1606,7 @@ SRST

Re: [PATCH v3 0/2] hw/arm/virt: Handle HVF in finalize_gic_version()

2023-02-02 Thread Philippe Mathieu-Daudé
Hi Peter, On 2/2/23 18:57, Peter Maydell wrote: On Fri, 23 Dec 2022 at 09:01, Alexander Graf wrote: The finalize_gic_version() function tries to determine which GIC version the current accelerator / host combination supports. During the initial HVF porting efforts, I didn't realize that I als

Re: [PATCH 1/1] target/loongarch: LL.{W/D} need writes val to dest register after sign extension

2023-02-02 Thread gaosong
在 2023/2/2 下午1:51, Richard Henderson 写道: On 2/1/23 17:16, Song Gao wrote: The Manual 2.2.7.2: 'The LL.{W/D} instruction retrieves a word/double-word data from the specified address of the memory and writes it to the general register rd after sign extension.' Signed-off-by: Song

[RFC PATCH V2 0/2] migration: support query migration thread information

2023-02-02 Thread Jiang Jiacheng via
We need get more migration thread information to support migration pin, especially thread name and its pid. Add an qmp interface to query migration threads information. v2 of: https://lists.nongnu.org/archive/html/qemu-devel/2023-01/msg04618.html diff to v2: * remove the event that report thread

[PATCH V2 1/2] migration: Introduce interface query-migrationthreads

2023-02-02 Thread Jiang Jiacheng via
Introduce interface query-migrationthreads. The interface is used to query information about migration threads and returns with migration thread's name and its id. Introduce threadinfo.c to manage threads with migration. Signed-off-by: Jiang Jiacheng --- migration/meson.build | 1 + migration/

[PATCH V2 2/2] migration: save/delete migration thread info

2023-02-02 Thread Jiang Jiacheng via
To support query migration thread infomation, save and delete thread(live_migration and multifdsend) information at thread creation and finish. Signed-off-by: Jiang Jiacheng --- migration/migration.c | 5 + migration/multifd.c | 5 + 2 files changed, 10 insertions(+) diff --git a/migr

Re: [RFC PATCH] gitlab: call ninja directly and reduce build noise

2023-02-02 Thread Thomas Huth
On 02/02/2023 19.59, Alex Bennée wrote: Alex Bennée writes: A significant portion of our CI logs are just enumerating each successfully built object file. The current widespread versions of ninja don't have a quiet option so we use NINJA_STATUS to add a fixed string to the ninja output which

<    1   2   3   4