Il sab 23 set 2023, 14:23 BALATON Zoltan ha scritto:
> On Sat, 23 Sep 2023, Paolo Bonzini wrote:
> > Signed-off-by: Paolo Bonzini
> > ---
> > hw/isa/vt82c686.c | 2 ++
> > hw/mips/fuloong2e.c | 13 ++---
> > hw/ppc/pegasos2.c | 10 --
> > 3 files changed, 20 insertions(+), 5
Il sab 23 set 2023, 13:49 BALATON Zoltan ha scritto:
> On Sat, 23 Sep 2023, Paolo Bonzini wrote:
> > From: Martin Kletzander
> >
> > Since all callers require a valid audiodev this function can now safely
> > abort in case of missing AudioState.
> >
> > Signed-off-by: Martin Kletzander
> >
On Sun, 24 Sep 2023, Paolo Bonzini wrote:
Il sab 23 set 2023, 14:23 BALATON Zoltan ha scritto:
On Sat, 23 Sep 2023, Paolo Bonzini wrote:
Signed-off-by: Paolo Bonzini
---
hw/isa/vt82c686.c | 2 ++
hw/mips/fuloong2e.c | 13 ++---
hw/ppc/pegasos2.c | 10 --
3 files changed,
Qemu mips userspace emulation crashes with "qemu: unhandled CPU exception
0x15 - aborting" when one of the integer arithmetic instructions detects
an overflow.
This patch fixes it so that it delivers SIGFPE with FPE_INTOVF instead.
Signed-off-by: Mikulas Patocka
Cc: qemu-sta...@nongnu.org
On Wed, Sep 20, 2023 at 10:46 PM Daniel Henrique Barboza
wrote:
>
> The array isn't marked as 'const' because we're initializing their
> elements in riscv_cpu_add_misa_properties(), 'name' and 'description'
> fields.
>
> In a closer look we can see that we're not using these 2 fields after
>
On Mon, Sep 25, 2023 at 2:11 AM Alvin Chang wrote:
>
> Current checks on writing pmpcfg for Smepmp follows Smepmp version
> 0.9.1. However, Smepmp specification has already been ratified, and
> there are some differences between version 0.9.1 and 1.0. In this
> commit we update the checks of
On Wed, Sep 20, 2023 at 9:24 PM Daniel Henrique Barboza
wrote:
>
> Priv spec validation is TCG specific. Move it to the TCG accel class.
>
> Signed-off-by: Daniel Henrique Barboza
> Reviewed-by: Andrew Jones
Reviewed-by: Alistair Francis
Alistair
> ---
> target/riscv/cpu.c | 38
On Wed, Sep 20, 2023 at 9:23 PM Daniel Henrique Barboza
wrote:
>
> This array will be read by the TCG accel class, allowing it to handle
> priv spec verifications on its own. The array will remain here in cpu.c
> because it's also used by the riscv,isa string function.
>
> To export it we'll
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/freebsd/os-proc.h| 34 ++
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 42 insertions(+)
diff --git
From: Stacey Son
Implement procctl flags and related structs:
struct target_procctl_reaper_status
struct target_procctl_reaper_pidinfo
struct target_procctl_reaper_pids
struct target_procctl_reaper_kill
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/qemu-bsd.h | 38 ++
1 file changed, 38 insertions(+)
create mode 100644 bsd-user/qemu-bsd.h
diff --git
Karim Taha (3):
bsd-user: define TARGET_RFSPAWN for rfork to use vfork(2) semantics,
and fix RLIM_INFINITY
bsd-user: Implement get_filename_from_fd.
bsd-user: Implement execve(2) and fexecve(2) system calls.
Kyle Evans (1):
bsd-user: Get number of cpus.
Stacey Son (24):
From: Stacey Son
Used in wait6 system call
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/signal-common.h | 1 +
bsd-user/signal.c| 6 ++
2 files changed, 7 insertions(+)
diff --git
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
---
bsd-user/freebsd/os-proc.h| 23 +++
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 31 insertions(+)
diff --git a/bsd-user/freebsd/os-proc.h
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.h | 76 +++
bsd-user/freebsd/os-syscall.c | 28 +
2 files changed, 104 insertions(+)
diff
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/qemu.h | 6 ++
1 file changed, 6 insertions(+)
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index d9507137cc..41c7bd31d3 100644
---
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.h | 13 +
bsd-user/freebsd/os-syscall.c | 4
2 files changed, 17 insertions(+)
diff --git a/bsd-user/bsd-proc.h
RLIM_INFINITY on FreeBSD, OpenBSD and NetBSD has value of ~(1<<63), caculated
one way or another.
Signed-off-by: Kyle Evans
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/syscall_defs.h | 8
1 file changed, 4 insertions(+), 4
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c
index 68410a0aa9..19e39a2f76 100644
On 18/09/2023 22:41, Markus Armbruster wrote:
> The QEMUFileHooks methods don't come with a written contract. Digging
> through the code calling them, we find:
>
> * save_page():
I'm fine with this
>
>Negative values RAM_SAVE_CONTROL_DELAYED and
>RAM_SAVE_CONTROL_NOT_SUPP are
Local variables shadowing other local variables or parameters make the
code needlessly hard to understand. Bugs love to hide in such code.
Evidence: "[PATCH v3 1/7] migration/rdma: Fix save_page method to fail
on polling error".
This patch removes the local variable shadowing. Tested by adding:
Local variables shadowing other local variables or parameters make the
code needlessly hard to understand. Bugs love to hide in such code.
Evidence: "[PATCH v3 1/7] migration/rdma: Fix save_page method to fail
on polling error".
This patch removes the local variable shadowing. Tested by adding:
Local variables shadowing other local variables or parameters make the
code needlessly hard to understand. Bugs love to hide in such code.
Evidence: "[PATCH v3 1/7] migration/rdma: Fix save_page method to fail
on polling error".
This patch removes the local variable shadowing. Tested by adding:
On 18/09/2023 22:41, Markus Armbruster wrote:
> rdma_getaddrinfo() returns 0 on success. On error, it returns one of
> the EAI_ error codes like getaddrinfo() does,
Good catch, It used to be -1 on error, rdma_getaddrinfo(3) updated it 2021.
or -1 with errno set.
> This is broken by
Local variables shadowing other local variables or parameters make the
code needlessly hard to understand. Bugs love to hide in such code.
Evidence: "[PATCH v3 1/7] migration/rdma: Fix save_page method to fail
on polling error".
This patch removes the local variable shadowing. Tested by adding:
Local variables shadowing other local variables or parameters make the
code needlessly hard to understand. Bugs love to hide in such code.
Evidence: "[PATCH v3 1/7] migration/rdma: Fix save_page method to fail
on polling error".
This patch removes the local variable shadowing. Tested by adding:
On 18/09/2023 22:41, Markus Armbruster wrote:
> qemu_rdma_wait_comp_channel() returns 0 on success, and either -1 or
> rdma->error_state on failure. Callers actually expect a negative
> error value.
I don't see the only one callers expect a negative error code.
migration/rdma.c:1654:
On 22/9/23 17:59, Cédric Le Goater wrote:
to fix warning :
../hw/i3c/aspeed_i3c.c: In function ‘aspeed_i3c_realize’:
../hw/i3c/aspeed_i3c.c:1959:17: warning: declaration of ‘dev’ shadows a
parameter [-Wshadow=local]
1959 | Object *dev = OBJECT(>devices[i]);
|
Am 20. September 2023 14:44:23 UTC schrieb Chuck Zmudzinski :
>On 9/19/2023 4:02 PM, Bernhard Beschow wrote:
>>
>>
>> Am 3. April 2023 12:27:14 UTC schrieb Jason Andryuk :
>>>On Mon, Apr 3, 2023 at 5:33 AM Anthony PERARD
>>>wrote:
On Sat, Apr 01, 2023 at 10:36:45PM +, Bernhard
On Sun, Sep 24, 2023 at 2:14 PM BALATON Zoltan wrote:
> > If you still want a machine audiodev propery then could the device handle
> >> it without needing changes to the machine? Like in via_isa_realize() add
> >>
> >> if (current_machine->audiodev) {
> >>
Current checks on writing pmpcfg for Smepmp follows Smepmp version
0.9.1. However, Smepmp specification has already been ratified, and
there are some differences between version 0.9.1 and 1.0. In this
commit we update the checks of writing pmpcfg to follow Smepmp version
1.0.
When mseccfg.MML is
Hi Philippe,
On 9/12/23 08:40, Gavin Shan wrote:
On 9/11/23 19:43, Philippe Mathieu-Daudé wrote:
On 11/9/23 01:28, Gavin Shan wrote:
On 9/8/23 21:22, Philippe Mathieu-Daudé wrote:
Add a field to return the QOM type name of a CPU class.
Signed-off-by: Philippe Mathieu-Daudé
---
On Tue, Sep 5, 2023 at 5:19 PM Andrei Gudkov
wrote:
> Currently query-dirty-rate uses QEMU_CLOCK_REALTIME as
> the source for start-time field. This translates to
> clock_gettime(CLOCK_MONOTONIC), i.e. number of seconds
> since host boot. This is not very useful. The only
> reasonable use case
On Wed, Sep 20, 2023 at 9:23 PM Daniel Henrique Barboza
wrote:
>
> Move the files to a 'kvm' dir to promote more code separation between
> accelerators and making our lives easier supporting build options such
> as --disable-tcg.
>
> Rename kvm.c to kvm-cpu.c to keep it in line with its TCG
On Wed, Sep 20, 2023 at 9:24 PM Daniel Henrique Barboza
wrote:
>
> riscv_cpu_add_misa_properties() is being used to fill the missing KVM
> MISA properties but it is a TCG helper that was adapted to do so. We'll
> move it to tcg-cpu.c in the next patches, meaning that KVM needs to fill
> the
On Wed, Sep 20, 2023 at 10:58 PM Daniel Henrique Barboza
wrote:
>
> All code related to MISA TCG properties is also moved.
>
> At this point, all TCG properties handling is done in tcg-cpu.c, all KVM
> properties handling is done in kvm-cpu.c.
>
> Signed-off-by: Daniel Henrique Barboza
>
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.c | 54 +
1 file changed, 54 insertions(+)
diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
---
bsd-user/bsd-proc.h | 39 +++
bsd-user/freebsd/os-syscall.c | 12 +++
2 files changed, 51 insertions(+)
diff --git a/bsd-user/bsd-proc.h b/bsd-user/bsd-proc.h
index
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/freebsd/os-proc.h| 39 +++
bsd-user/freebsd/os-syscall.c | 4
2 files changed, 43 insertions(+)
diff --git
On Wed, Sep 20, 2023 at 9:26 PM Daniel Henrique Barboza
wrote:
>
> Hi,
>
> In this version we changed patch 10 (remove kvm-stub.c) as suggested by
> Phil to not include non-KVM stubs in kvm_riscv.h. A change in patch 05
> requested by Zhiwei was also made.
>
> Patches based on Alistair's
On Wed, Sep 20, 2023 at 9:23 PM Daniel Henrique Barboza
wrote:
>
> We'll move riscv_init_max_cpu_extensions() to tcg-cpu.c in the next
> patch and set_misa() needs to be usable from there.
>
> Rename it to riscv_cpu_set_misa() and make it public.
>
> Signed-off-by: Daniel Henrique Barboza
>
On Wed, Sep 20, 2023 at 9:23 PM Daniel Henrique Barboza
wrote:
>
> tcg_cpu_instance_init() will be the 'cpu_instance_init' impl for the TCG
> accelerator. It'll be called from within riscv_cpu_post_init(), via
> accel_cpu_instance_init(), similar to what happens with KVM. In fact, to
> preserve
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
---
bsd-user/freebsd/os-proc.h| 32
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 40 insertions(+)
diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h
From: Stacey Son
Implement t2h_procctl_cmd, h2t_reaper_status, h2t_reaper_pidinfo and h2t/t2h
reaper_kill conversion functions.
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
---
bsd-user/freebsd/os-proc.c| 222 ++
bsd-user/freebsd/os-syscall.c | 3
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Warner Losh
---
bsd-user/freebsd/os-proc.c | 177 +
bsd-user/main.c| 2 +-
bsd-user/qemu.h| 1 +
3 files changed, 179 insertions(+), 1 deletion(-)
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/freebsd/os-proc.h| 49 +++
bsd-user/freebsd/os-syscall.c | 11 +++-
2 files changed, 59 insertions(+), 1 deletion(-)
create mode
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.h | 28
bsd-user/freebsd/os-syscall.c | 16
2 files changed, 44 insertions(+)
diff
From: Stacey Son
getpid(2), getppid(2), getpgrp(2)
setreuid(2), setregid(2)
getuid(2), geteuid(2), getgid(2), getegid(2), getpgid(2)
setuid(2), seteuid(2), setgid(2), setegid(2), setpgid(2)
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/freebsd/meson.build | 1 +
bsd-user/freebsd/os-proc.c | 80
2 files changed, 81 insertions(+)
create mode 100644
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
---
bsd-user/bsd-proc.c | 40
bsd-user/bsd-proc.h | 4
bsd-user/meson.build | 6 ++
3 files changed, 50 insertions(+)
create mode 100644 bsd-user/bsd-proc.c
diff --git
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
---
bsd-user/freebsd/os-proc.h| 84 +++
bsd-user/freebsd/os-syscall.c | 15 +++
2 files changed, 99 insertions(+)
diff --git a/bsd-user/freebsd/os-proc.h b/bsd-user/freebsd/os-proc.h
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.h | 59 +++
bsd-user/freebsd/os-syscall.c | 8 +
2 files changed, 67 insertions(+)
diff --git
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c
index aa386ff482..19f6efe1f7
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.h | 24
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 32 insertions(+)
diff --git a/bsd-user/bsd-proc.h
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Acked-by: Richard Henderson
Reviewed-by: Warner Losh
---
bsd-user/freebsd/os-proc.h| 32
bsd-user/freebsd/os-syscall.c | 4
2 files changed, 36 insertions(+)
diff --git
From: Stacey Son
Signed-off-by: Stacey Son
Signed-off-by: Karim Taha
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.h | 44 +++
bsd-user/freebsd/os-syscall.c | 9 +++
2 files changed, 53 insertions(+)
diff --git a/bsd-user/bsd-proc.h
From: Kyle Evans
Signed-off-by: Kyle Evans
Signed-off-by: Karim Taha
Reviewed-by: Warner Losh
---
bsd-user/bsd-proc.c | 24
bsd-user/bsd-proc.h | 2 ++
2 files changed, 26 insertions(+)
diff --git a/bsd-user/bsd-proc.c b/bsd-user/bsd-proc.c
index
57 matches
Mail list logo