Re: A question about how to calculate the "Maximum transfer length" in case of its absence in the Block Limits VPD device response from the hardware

2025-04-24 Thread lma
在 2025-04-24 22:51,Stefan Hajnoczi 写道: On Wed, Apr 23, 2025 at 10:07:48PM +0800, lma wrote: 在 2025-04-23 21:24,Stefan Hajnoczi 写道: > On Wed, Apr 23, 2025 at 05:47:44PM +0800, lma wrote: > > 在 2025-04-18 23:34,Stefan Hajnoczi 写道: > > > On Thu, Apr 17, 2025 at 07:27:26P

Re: A question about how to calculate the "Maximum transfer length" in case of its absence in the Block Limits VPD device response from the hardware

2025-04-23 Thread lma
在 2025-04-18 23:34,Stefan Hajnoczi 写道: On Thu, Apr 17, 2025 at 07:27:26PM +0800, lma wrote: Hi all, In case of SCSI passthrough, If the Block Limits VPD device response is absent from hardware, QEMU handles it. There are several variables involved in this process as follows: * The

A question about how to calculate the "Maximum transfer length" in case of its absence in the Block Limits VPD device response from the hardware

2025-04-17 Thread lma
Hi all, In case of SCSI passthrough, If the Block Limits VPD device response is absent from hardware, QEMU handles it. There are several variables involved in this process as follows: * The bl.max_transfer * The bl.max_iov that is associated with IOV_MAX. * The bl.max_hw_iov that is associated

Issue with acpi hotplug on pcie root ports in case of q35 + ovmf + machine type 6.1

2021-11-02 Thread lma
Hi list, Have you experienced any acpi hotplugging issue while using q35 + ovmf + machine type 6.1? According to the error message in guest kernel, It seems qemu with ovmf doesn't prepare enough resource in PCI space for acpi hotplugging on multifunction bridges. Please refer to issue#705 f

Re: [PATCH 0/3] Postcopy migration: Add userfaultfd- user-mode-only capability

2021-10-15 Thread lma
在 2021-10-15 16:28,Peter Xu 写道: On Fri, Oct 15, 2021 at 04:16:15PM +0800, lma wrote: 在 2021-10-15 14:12,Peter Xu 写道: > On Fri, Oct 15, 2021 at 01:38:06PM +0800, lma wrote: > > 在 2021-10-15 07:43,Peter Xu 写道: > > > On Thu, Oct 14, 2021 at 05:15:48PM +0800, Lin Ma wrote: &g

Re: [PATCH 0/3] Postcopy migration: Add userfaultfd- user-mode-only capability

2021-10-15 Thread lma
在 2021-10-15 14:12,Peter Xu 写道: On Fri, Oct 15, 2021 at 01:38:06PM +0800, lma wrote: 在 2021-10-15 07:43,Peter Xu 写道: > On Thu, Oct 14, 2021 at 05:15:48PM +0800, Lin Ma wrote: > > Since kernel v5.11, Unprivileged user (without SYS_CAP_PTRACE > > capability) > > must pass U

Re: [PATCH 0/3] Postcopy migration: Add userfaultfd- user-mode-only capability

2021-10-14 Thread lma
在 2021-10-15 07:43,Peter Xu 写道: On Thu, Oct 14, 2021 at 05:15:48PM +0800, Lin Ma wrote: Since kernel v5.11, Unprivileged user (without SYS_CAP_PTRACE capability) must pass UFFD_USER_MODE_ONLY to userfaultd in case unprivileged_userfaultfd sysctl knob is 0. Please refer to https://lwn.net/Artic

[RESEND] [PATCH v5] qga: Correct loop count in qmp_guest_get_vcpus()

2021-01-29 Thread lma--- via
The guest-get-vcpus returns incorrect vcpu info in case we hotunplug vcpus(not the last one). e.g.: A VM has 4 VCPUs: cpu0 + 3 hotunpluggable online vcpus(cpu1, cpu2 and cpu3). Hotunplug cpu2, Now only cpu0, cpu1 and cpu3 are present & online. ./qmp-shell /tmp/qmp-monitor.sock (QEMU) query-hotplu

Questions about online resizing a lun passthrough disk with virtio-scsi

2020-07-08 Thread lma
Hi all, I have questions about online resizing a scsi lun passthrough disk. Here is my test scenario: host A: - the local 50GB sata /dev/sdd1 is configured as a physical volume, Created a 10GB logical volume. - exported the lv by iscsi target by targetcli. host B: - connected to the above iscs