[PATCH] linux-user: open_self_stat: Implement num_threads

2024-06-19 Thread Fabio D';Urso
The num_threads field reports the total number of threads in the process. In QEMU, this is equal to the number of CPU instances. Signed-off-by: Fabio D'Urso --- linux-user/syscall.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c

[PATCH] hw/usb/dev-mtp: Correctly report free space

2024-06-17 Thread Fabio D';Urso
In order to compute the amount of free space (in bytes), the number of available blocks (f_bavail) should be multiplied by the block size (f_frsize) instead of the total number of blocks (f_blocks). Signed-off-by: Fabio D'Urso --- hw/usb/dev-mtp.c | 2 +- 1 file changed, 1 insertion(