[PATCH] target/riscv: Fix privilege mode of G-stage translation for debugging

2024-02-28 Thread Hiroaki Yamamoto
G-stage translation should be considered to be user-level access in riscv_cpu_get_phys_page_debug(), as already done in riscv_cpu_tlb_fill(). This fixes a bug that prevents gdb from reading memory while the VM is running in VS-mode. Signed-off-by: Hiroaki Yamamoto --- target/riscv

[Qemu-devel] [Bug 1437367] [NEW] Qemu guest fails to write files with raw disk (like \\.\PhysicalDrive1) on Windows host.

2015-03-27 Thread hiroaki
ith GetLastError() == ERROR_INVALID_FUNCTION I think this function doesn't support raw device. For flushing, you might have to issue scsi/ata command or use another way. Trying to just ignoring this error, writing function seems to be fine for me. Thanks hiroaki ** Affects: qemu Im

[Qemu-devel] [Bug 1435973] [NEW] Qemu crash when a guest linux issues specific scsi command via ioctl(SG_IO) with SCSI disk emulation.

2015-03-24 Thread hiroaki
.. memcpy(cmd->buf, buf, cmd->len); } scsi_cdb_length(buf) returns -1 when buf[0] is unexpected value. Then memcpy(cmd->buf, buf, 4294967295); is executed and crash. Environment Qemu: git revision 362ca922eea03240916287a8a6267801ab095d12 Guest: linux kernel 3.18.4 + buildroot Host: Win