On 6/13/22 13:09, Sam Li wrote:
> By adding zone management operations in BlockDriver, storage
> controller emulation can use the new block layer APIs including
> zone_report, zone_reset, zone_open, zone_close, and zone_finish.
Like a real review, commenting inline below.
>
> Signed-off-by: Sam
With address space switch supported, dma access translation only
happen after endpoint is attached to a non-bypass domain.
Signed-off-by: Zhenzhong Duan
---
hw/virtio/virtio-iommu.c | 4
1 file changed, 4 insertions(+)
diff --git a/hw/virtio/virtio-iommu.c b/hw/virtio/virtio-iommu.c
index
Currently assigned devices can not work in virtio-iommu bypass mode.
Guest driver fails to probe the device due to DMA failure. And the
reason is because of lacking GPA -> HPA mappings when VM is created.
Add a root container memory region to hold both bypass memory region
and iommu memory region,
When switching address space with mutex lock hold, mapping will be
replayed for assigned device. This will trigger relock deadlock.
Also release the mutex resource in unrealize routine.
Signed-off-by: Zhenzhong Duan
---
hw/virtio/virtio-iommu.c | 20 +++-
include/hw/virt
Currently virtio-iommu's logic to support bypass mode works only for
emulated device. For assigned device, no GPA -> HPA mapping is setup
in IOMMU page table.
Host report below error:
[3713481.750944] dmar_fault: 191 callbacks suppressed
[3713481.750953] DMAR: DRHD: handling fault status reg 302
[
On 11/06/2022 01.28, John Snow wrote:
This test doesn't appear to work for me:
def build_image(self, img):
cimg =
self._download_with_cache("https://cloud.centos.org/centos/8/x86_64/images/CentOS-8-GenericCloud-8.3.2011-20201204.2.x86_64.qcow2";)
img_tmp = img + ".tmp"
subprocess
On 11/06/2022 02.16, John Snow wrote:
Hi,
on today's upstream of b3cd3b5a66f0dddfe3d5ba2bef13cd4f5b89cde9, I am
seeing failures with the Haiku VM building test:
FAILED: libqemuutil.a.p/util_cutils.c.o
[...]
../src/util/cutils.c: In function 'qemu_init_exec_dir':
../src/util/cutils.c:1019:9: e
By adding zone management operations in BlockDriver, storage
controller emulation can use the new block layer APIs including
zone_report, zone_reset, zone_open, zone_close, and zone_finish.
Signed-off-by: Sam Li
---
block/block-backend.c | 20
block/coroutines.h
On 2022/6/12 上午12:06, Richard Henderson wrote:
void helper_asrtle_d(CPULoongArchState *env, target_ulong rj,
target_ulong rk)
{
if (rj > rk) {
env->badvaddr = env->pc;
do_raise_exception(env, EXCCODE_BCE, env->badvaddr);
}
}
Well, not quite. The value of env->
On Sun, Jun 12, 2022 at 11:59:49PM +0200, Jason A. Donenfeld wrote:
> If the FDT contains /chosen/rng-seed, then the Linux RNG will use it to
> initialize early. Set this using the usual guest random number
> generation function. This is confirmed to successfully initialize the
> RNG on Linux 5.19-
On Thu, Jun 9, 2022 at 11:11 AM Bin Meng wrote:
>
> When running with accel=kvm, the extensions are actually told by
> KVM, so let's skip the parsing logic from properties for KVM.
>
> Signed-off-by: Bin Meng
Reviewed-by: Alistair Francis
Alistair
> ---
>
> target/riscv/cpu.c | 7 +--
>
On Thu, Jun 9, 2022 at 11:09 AM Bin Meng wrote:
>
> env->misa_ext_mask might be set to the same value of env->misa_ext
> in riscv_cpu_realize() based on given properties, but it may differ
> from what KVM tells us.
>
> Let's set the correct env->misa_ext_mask in kvm_arch_init_vcpu().
>
> Signed-of
On Thu, Jun 9, 2022 at 11:08 AM Bin Meng wrote:
>
> env->misa_mxl was already set in the RISC-V cpu init routine, and
> validated at the beginning of riscv_cpu_realize(). There is no need
> to do a redundant initialization later.
>
> Signed-off-by: Bin Meng
> ---
>
> target/riscv/cpu.c | 2 +-
>
On Sat, Jun 11, 2022 at 2:59 AM Víctor Colombo
wrote:
>
> Commit 57c108b8646 introduced gen_set_gpri(), which already contains
> a check for if the destination register is 'zero'. The check in auipc
> and lui are then redundant. This patch removes those checks.
>
> Signed-off-by: Víctor Colombo
On Sun, Jun 5, 2022 at 9:12 AM Richard Henderson
wrote:
>
> The set of instructions that require decode_save_opc for
> unwinding is really fairly small -- only insns that can
> raise ILLEGAL_INSN at runtime. This includes CSR, anything
> that uses a *new* fp rounding mode, and many privileged ins
On Sun, Jun 5, 2022 at 9:13 AM Richard Henderson
wrote:
>
> The function doesn't set mtval, it sets badaddr. Move the set
> of badaddr directly into gen_exception_inst_addr_mis and use
> generate_exception.
>
> Signed-off-by: Richard Henderson
Reviewed-by: Alistair Francis
Alistair
> ---
> t
On Sun, Jun 5, 2022 at 9:11 AM Richard Henderson
wrote:
>
> While we set env->bins when unwinding for ILLEGAL_INST,
> from e.g. csrrw, we weren't setting it for immediately
> illegal instructions.
>
> Add a testcase for mtval via both exception paths.
>
> Resolves: https://gitlab.com/qemu-project/
On Sat, Jun 11, 2022 at 2:59 AM Víctor Colombo
wrote:
>
> Commit 57c108b8646 introduced gen_set_gpri(), which already contains
> a check for if the destination register is 'zero'. The check in auipc
> and lui are then redundant. This patch removes those checks.
>
> Signed-off-by: Víctor Colombo
If the FDT contains /chosen/rng-seed, then the Linux RNG will use it to
initialize early. Set this using the usual guest random number
generation function. This is confirmed to successfully initialize the
RNG on Linux 5.19-rc2.
Cc: Stafford Horne
Signed-off-by: Jason A. Donenfeld
---
hw/openris
Signed-off-by: Stacey Son
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 30 ++
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 38 insertions(+)
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
index 73263ba482f..ccfa65ec5e9 100644
Implement the next round of system calls. These are open, openat, close,
fdatasync, fsync, close_from, revoke, access, eacccess, facccessat, chdir,
fchdir, rename, renameat, mkdir, mkdirat, rmdir, _getcwd, dup, dup2, truncate,
ftruncate, acct and sync. In addition, the helper functions needed for t
Signed-off-by: Stacey Son
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 14 ++
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 22 insertions(+)
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
index 500d6ba78b9..73263ba482f 100644
--- a/bsd-user/
Signed-off-by: Stacey Son
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 24
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 32 insertions(+)
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
index ccfa65ec5e9..6b20442ecdc 100644
--- a
Signed-off-by: Stacey Son
Signed-off-by: Jung-uk Kim
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 54 +++
bsd-user/freebsd/os-syscall.c | 16 +++
2 files changed, 70 insertions(+)
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
i
Implemenet rmdir and __getcwd. Declare __getcwd as extern because
there's no installed FreeBSD header that has it. It's used internally by
libc, which doesn't provide an external declaration, but does export the
symbol.
Signed-off-by: Stacey Son
Signed-off-by: Jung-uk Kim
Signed-off-by: Warner L
Add the open, openat and close system calls. We need to lock paths, so
implmenent that as well.
Signed-off-by: Stacey Son
Signed-off-by: Jung-uk Kim
Signed-off-by: Kyle Evans
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 50 +++
bsd-user/freebs
Signed-off-by: Stacey Son
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 27 +++
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 35 insertions(+)
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
index 08b1d3a53a9..35036364ad8 100644
--
Signed-off-by: Stacey Son
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 20
bsd-user/freebsd/os-syscall.c | 8
2 files changed, 28 insertions(+)
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
index 37b3efccd2c..8e5d302972c 100644
--- a/bsd
Implement fdatasync(2), fsync(2) and close_from(2).
Signed-off-by: Stacey Son
Signed-off-by: Jung-uk Kim
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 22 ++
bsd-user/freebsd/os-syscall.c | 12
2 files changed, 34 insertions(+)
diff --git a/bs
Signed-off-by: Stacey Son
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 53 +++
bsd-user/freebsd/os-syscall.c | 16 +++
2 files changed, 69 insertions(+)
diff --git a/bsd-user/bsd-file.h b/bsd-user/bsd-file.h
index 3e0f160e312..37b3efccd2
Plus the helper LOCK_PATH2 and UNLOCK_PATH2 macros.
Signed-off-by: Stacey Son
Signed-off-by: Jung-uk Kim
Signed-off-by: Warner Losh
---
bsd-user/bsd-file.h | 45 +++
bsd-user/freebsd/os-syscall.c | 8 +++
2 files changed, 53 insertions(+)
diff --
pi440fx_state is an out-parameter which is never read by the caller.
Signed-off-by: Bernhard Beschow
---
hw/i386/pc_piix.c| 3 ---
hw/pci-host/i440fx.c | 4 +---
include/hw/pci-host/i440fx.h | 1 -
3 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/hw/i386/pc_piix.
In patch v5 [1] of Introduce CanoKey QEMU I said that canokey-qemu
was incompatible with qemu-xhci.
kraxel kindly suggested[2] that it should be the problem of usb_wakeup
So I fixed it in this patch set.
Now that the v5 patch has been in the process of git PULL [3],
I think it would be better to
Signed-off-by: Hongren (Zenithal) Zheng
---
docs/system/devices/canokey.rst | 10 --
1 file changed, 10 deletions(-)
diff --git a/docs/system/devices/canokey.rst b/docs/system/devices/canokey.rst
index 169f99b8eb..c2c58ae3e7 100644
--- a/docs/system/devices/canokey.rst
+++ b/docs/system/
XHCI wont poll interrupt IN endpoint if NAKed, and needs wakeup
Suggested-by: Gerd Hoffmann
Signed-off-by: Hongren (Zenithal) Zheng
---
hw/usb/canokey.c | 28
hw/usb/canokey.h | 1 +
2 files changed, 29 insertions(+)
diff --git a/hw/usb/canokey.c b/hw/usb/canokey.
CCID could send zero-length packet (ZLP)
if we invoke two data_in, two packets would be concated
and we could not distinguish them.
The CANOKEY_EMU_EP_CTAPHID is exported from canokey-qemu.h
Reported-by: MkfsSion
Signed-off-by: Hongren (Zenithal) Zheng
---
hw/usb/canokey.c | 7 +++
1 file
PCI Express devices which use legacy VGA compatibility should be placed
on the Root Complex. This simplifies ioport access to VGA registers,
which requires use of a special exception bit to work across PCI(e)
bridges. It is also necessary for ioport access to VESA BIOS Extension
(VBE) registers,
Le 10/06/2022 à 16:38, Alex Bennée a écrit :
While forcing the CPU to unrealize by hand does trigger the clean-up
code we never fully free resources because refcount never reaches
zero. This is because QOM automatically added objects without an
explicit parent to /unattached/, incrementing the re
On 6/11/22 15:00, Philippe Mathieu-Daudé wrote:
From: Philippe Mathieu-Daudé
Hi Richard,
In case it is not too late, this v2 includes another fix from Bernhard
which was supposed to be in v1. Otherwise it will go in the next PR.
The second PR merged well with the first, so I have applied thi
Add an endianness property to allow configuring the RTC as either
native, little or big endian.
Cc: Laurent Vivier
Cc: Arnd Bergmann
Signed-off-by: Stafford Horne
---
In a recent mail thread[0] it was discussed that future users of goldfish
devices
should use little-endian rather than native e
> On Jun 10, 2022, at 1:27 AM, Klaus Jensen wrote:
>
> I'm ok with following the concensus here, but we all agree that this is
> a blatant spec violation that ended up manifesting itself down the
> stack, right?
>
> So... if QEMU wants to be compliant here, I guess we could ask the
> kernel to
On Mon, May 30, 2022 at 01:27:07PM +0200, Philippe Mathieu-Daudé wrote:
> From: Philippe Mathieu-Daudé
>
> This series moves the outstanding logic from piix4_pm_init() into
> the relevant instance init() and realize() functions, changes the
> IRQs to use qdev gpios, and then finally removes the n
42 matches
Mail list logo