[Qemu-devel] [Bug 974958] [NEW] It dumps when following this tutorial on hello world os

2012-04-06 Thread Alan
Public bug reported: http://mikeos.berlios.de/write-your-own-os.html Following the steps, it works on ubuntu, but on osx, it ALWAYS dumps. ** Affects: qemu Importance: Undecided Status: New -- You received this bug notification because you are a member of qemu- devel-ml, which

[Qemu-devel] [Bug 886621] Re: Mac OS X Lion: segmentation fault

2012-04-06 Thread Alan
Having exactly the same problem here... -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/886621 Title: Mac OS X Lion: segmentation fault Status in QEMU: New Bug description: /usr/local/xeos-buil

Re: [Qemu-devel] x86, nops settings result in kernel crash

2012-08-16 Thread Alan Cox
caused by setting ideal_nops to p6_nops (k8_nops was used before > > > the break statement was added). > > > > Maybe I overlooked it or maybe it was implied but did you try > > reverting > > the patch and rerunning your test? Does it work ok then? > > > > Yes, if I remove the break statement (introduced by this commit), it works > fine. What version of qemu is this - do we have qemu bug here I wonder. Alan

Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-08 Thread Alan Cox
lose it. I see no reason not to do that. Also the LSM hooks apply to file objects mostly, so its a natural fit on top *IF* you choose to use them. Finally you can pass file handles around between processes - do that any other way 8) Alan

Re: [Qemu-devel] [RFC] Next gen kvm api

2012-02-08 Thread Alan Cox
hich can be shortcut and a completion set of inb/inw ops that can be predicted. You should hit userspace about once per IDE operation. Fix the hot paths with good design and the noise doesn't matter. Alan

[Qemu-devel] Possible qemu gpl license violation

2012-06-26 Thread Alan Nelson
ng them to follow the qemu gpl license rules? Alan

Re: [Qemu-devel] USB2.0 disk format failure in windows guest

2013-04-15 Thread Alan Stern
On Sun, 14 Apr 2013, Gonglei (Arei) wrote: > > > Hi Alan, > > > We pass-throughed USB 2.0 disk to guest using usb-host (qemu option: > > -device usb-ehci,id=ehci -device usb-host,bus=ehci.0,hostbus=2,hostport=1) > > on > > KVM(on linux-3.8.3 or linux-3.0.1

Re: [Qemu-devel] USB2.0 disk format failure in windows guest

2013-04-16 Thread Alan Stern
> > > It's okay to have an URB size that isn't a multiple of 512 if that URB > > is the last one in a transfer. For example, the 31-byte URBs were the > > only URBs in their transfers, so they were okay. But the 4064-byte > > URBs occurred at the start and i

[Qemu-devel] [Bug 1423668] [NEW] Unable to set scsi drive serial if it contains spaces.

2015-02-19 Thread Alan Latteri
Public bug reported: I am virtualzing a physical server for which I need to set the SCSI/SATA drive serial. It is comprised of 12 " " spaces then 8 letter/digits. If I exclude the spaces, the drive serial is not accurate. If I include the spaces I get the following error. error: Failed to start

[Qemu-devel] unable to set SATA serial with a spaces

2015-02-19 Thread Alan Latteri
I am virtualzing a physical server for which I need to set the SCSI/SATA drive serial. It is comprised of 12 " " spaces then 8 letter/digits. If I exclude the spaces, the drive serial is not accurate. If I include the spaces I get the following error. error: Failed to start domain test1 error:

Re: [Qemu-devel] unable to set SATA serial with a spaces

2015-02-19 Thread Alan Latteri
ote: > > > > On 02/19/2015 02:48 PM, Alan Latteri wrote: >> I am virtualzing a physical server for which I need to set the SCSI/SATA >> drive serial. It is comprised of 12 " " spaces then 8 letter/digits. If >> I exclude the spaces, the drive serial is not accurate. If

Re: [Qemu-devel] unable to set SATA serial with a spaces

2015-02-20 Thread Alan Latteri
s/372419e1-ca68-408f-b809-04ce54450e60-0.img,if=none,id=drive-sata0-0-0,format=qcow2,serial=: could not open disk image ABCD1234,cache=none: Could not open file: No such file or directory tried with quotes around the serial value and also using escpare characters. No go. Thanks, Alan > On Fe

Re: [Qemu-devel] unable to set SATA serial with a spaces

2015-02-20 Thread Alan Latteri
From what I can tell in the code, padstr() is only coded in the IDE section, not SCSI/SATA? > On Feb 19, 2015, at 11:42 PM, Markus Armbruster wrote: > > John Snow mailto:js...@redhat.com>> writes: > >> On 02/19/2015 02:48 PM, Alan Latteri wrote: >>> I am

Re: [Qemu-devel] unable to set SATA serial with a spaces

2015-02-20 Thread Alan Latteri
The left padding is important and necessary to keep for my particular application. This is broken in libvirt, but works fine with direct Qemu invocation. Thank you for the help. Alan > On Feb 20, 2015, at 1:28 AM, Markus Armbruster wrote: > > Alan Latteri mailto:a...@insti

Re: [Qemu-devel] unable to set SATA serial with a spaces

2015-02-24 Thread Alan Latteri
Bug 1195660 <https://bugzilla.redhat.com/show_bug.cgi?id=1195660> has been added to the database > On Feb 23, 2015, at 3:41 AM, Michal Privoznik wrote: > > On 23.02.2015 11:18, Markus Armbruster wrote: >> Alan Latteri writes: >> >>> The left padding is im

[Qemu-devel] Qemu-KVM: Virtual Machine Power Managment

2014-11-06 Thread Carew, Alan
I missed for exposing such an ability or similar for Qemu-KVM based virtual machines. Thanks in advance, Alan.

Re: [Qemu-devel] [dpdk-dev] [PATCH v4 00/10] VM Power Management

2014-12-12 Thread Carew, Alan
hich doesn't fit with > > >>>> their plan. > > >>>> Remember that we already had this problem with ivshmem which > was > > >>>> planned to be dropped. > > >>> > > >>> Unfortunately, I have not yet received an

[Qemu-devel] OBSCURE technical question for qemu devs....

2012-11-29 Thread Alan Jacobs
Hello: I am Alan Jacobs in Green Bay Wisconsin USA ( north of Chicago). I have a difficult emulation question regarding interrupt driven bidirectional parallel port communication on a Celeron 220 Intel processor with 2GB RAM ( but no hardware KVM extension I can find ), but with bios option to

[Qemu-devel] pci_change_irq_level is broken...

2011-09-20 Thread Alan Amaral
   bus = pci_dev->bus;    bus_irq_num = bus->map_irq(pci_dev, bus_irq_num);    if (bus->set_irq)    break;    pci_dev = bus->parent_dev;    }     assert(irq_num >= 0);    assert(irq_num < bus->nirq);    bus->irq_count[irq_num] += change;    bus->se

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-20 Thread Alan Amaral
0 or 1 */ static void pci_set_irq(void *opaque, int irq_num, int level) so, that implies to me that it's probably always 4... Sorry for the confusion. From: Richard Henderson Sent: Tue 9/20/2011 2:57 PM To: Alan Amaral Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] pci_change_irq_level is

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-21 Thread Alan Amaral
From: Jan Kiszka Sent: Tue 9/20/2011 3:41 PM To: Alan Amaral Cc: Richard Henderson; qemu-devel@nongnu.org Subject: Re: pci_change_irq_level is broken... > On 2011-09-20 21:19, Alan Amaral wrote: > > QEMU emulator version 0.14.50, Copyright (c) 2003-2008 Fabrice Bellard >

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-21 Thread Alan Amaral
my earlier reply to Jan Kiszka for full details. Thanks, Alan From: Richard Henderson Sent: Tue 9/20/2011 3:56 PM To: Alan Amaral Cc: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] pci_change_irq_level is broken... On 09/20/2011 12:19 PM, Alan Amaral wrote: > QEMU emulator version 0.14.

Re: [Qemu-devel] pci_change_irq_level is broken...

2011-09-21 Thread Alan Amaral
  Excellent!  Thanks...   Alan From: Jan KiszkaSent: Wed 9/21/2011 12:33 PMTo: Alan AmaralCc: qemu-devel@nongnu.org; r...@twiddle.netSubject: Re: pci_change_irq_level is broken... On 2011-09-21 18:26, Alan Amaral wrote: > > > > > From: Jan Kiszka > Sent: Tue 9/20

Re: [Qemu-devel] QEMU/MIPS & dyntick kernel

2007-10-02 Thread Alan Cox
ns on NMI or if you take an ECC exception and scrubbing stall off the memory controller while loading part of that cache line of code into memory ? Alan

Re: [Qemu-devel] qemu-0.8.0 question?

2006-01-02 Thread Alan Pope
On 02/01/06, Ishwar Rattan <[EMAIL PROTECTED]> wrote: > > Has there been a change in -user-net part > (other than -net user) for qemu-0.8.0? > Yes, you need -net nic as well as -net user. Cheers, Al. ___ Qemu-devel mailing list Qemu-devel@nongnu.org h

[PATCH v2] hw/display/bcm2835_fb: Fix framebuffer allocation address

2022-07-25 Thread Alan Jian
/Screen02 examples from Baking Pi tutorial[2] didn't work before this patch. [1] https://github.com/qemu/qemu/blob/master/hw/misc/bcm2835_property.c#L158 [2] https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/os/screen01.html Signed-off-by: Alan Jian --- This patch is v2 because the pre

[RFC 0/1] hw/nvme: add atomic write support

2024-04-15 Thread Alan Adamson
as the max atomic write size. Future Work --- - Namespace support (NAWUN, NAWUPF and NACWU) - Namespace Boundary support (NABSN, NABO, and NABSPF) - Atomic Compare and Write Unit (ACWU) Alan Adamson (1): nvme: add atomic write support hw

[RFC 1/1] hw/nvme: add atomic write support

2024-04-15 Thread Alan Adamson
=UINT16 (default: 0) Signed-off-by: Alan Adamson --- hw/nvme/ctrl.c | 147 - hw/nvme/nvme.h | 17 ++ 2 files changed, 163 insertions(+), 1 deletion(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index 127c3d238346..5d19965122d0 100644 --- a/hw

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-23 Thread Alan Stern
gt; > Question is: What is actually wrong ? Something in the generic interrupt > handling code in Linux, something in the Linux usb-ohci driver, or > something in qemu ? Any idea how a proper fix might look like ? To answer these questions we need more information. Alan Stern

Re: Problems (timeouts) when testing usb-ohci with qemu

2024-04-23 Thread Alan Stern
On Tue, Apr 23, 2024 at 02:10:13PM -0700, Guenter Roeck wrote: > Hi Alan, > > On 4/23/24 10:30, Alan Stern wrote: > > On Tue, Apr 23, 2024 at 10:04:17AM -0700, Guenter Roeck wrote: > > > Hi, > > > > > > when testing usb-ohci > > > > What

Re: [PATCH v2 06/14] target/arm: use gdb_get_reg helpers

2019-12-02 Thread Alan Hayward
in LE order */ > > Oh, this was always wrong on BE :( Am I right in thinking this patch correctly matches the SVE BE changes from June? Specifically, this patch: http://lists.infradead.org/pipermail/linux-arm-kernel/2019-June/657826.html Alan. > > Reviewed-by: Philippe Mathieu-D

[PATCH 0/1] hw/nvme: add atomic write support

2024-08-20 Thread Alan Adamson
ite support, this error no longer happens. Future Work --- - Namespace support (NAWUN, NAWUPF and NACWU) - Namespace Boundary support (NABSN, NABO, and NABSPF) - Atomic Compare and Write Unit (ACWU) Alan Adamson (1): hw/nvme: add atomic write support hw/nvme/c

[PATCH 1/1] hw/nvme: add atomic write support

2024-08-20 Thread Alan Adamson
. Signed-off-by: Alan Adamson --- hw/nvme/ctrl.c | 161 + hw/nvme/nvme.h | 12 2 files changed, 173 insertions(+) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index c6d4f61a47f9..ac0efa95588d 100644 --- a/hw/nvme/ctrl.c +++ b/hw/nvme/ctrl.c

Re: [PATCH 0/1] hw/nvme: add atomic write support

2024-09-17 Thread alan . adamson
On 9/17/24 12:59 AM, Klaus Jensen wrote: On Aug 20 09:11, Alan Adamson wrote: Since there is work in the Linux NVMe Driver community to add Atomic Write support, it would be desirable to be able to test it with qemu nvme emulation. This patch will focus on supporting NVMe controller atomic

Re: [PATCH 0/1] hw/nvme: add atomic write support

2024-09-17 Thread alan . adamson
On 9/17/24 9:21 AM, alan.adam...@oracle.com wrote: On 9/17/24 12:59 AM, Klaus Jensen wrote: On Aug 20 09:11, Alan Adamson wrote: Since there is work in the Linux NVMe Driver community to add Atomic Write support, it would be desirable to be able to test it with qemu nvme emulation.   This

[Qemu-devel] [Bug 1808563] [NEW] Listing the contents of / lists QEMU_LD_PREFIX instead

2018-12-14 Thread Alan Jones
Public bug reported: Seeing this in qemu-user version 3.1.0 Demo: $ QEMU_LD_PREFIX=$(pwd)/usr/armv7a-cros-linux-gnueabi ../run/qemu-arm /tmp/coreutils --coreutils-prog=ls / etc lib usr $ ls / boot etc lib lib64 lost+found mntroot sbin sys usr bin dev export homelib32

[Qemu-devel] [Bug 1808565] [NEW] Reading /proc/self/task//maps is not remapped to the target

2018-12-14 Thread Alan Jones
Public bug reported: Seeing this in qemu-user 3.1.0 The code in is_proc_myself which supports remapping of /proc/self/maps and /proc//maps does not support remapping of /proc/self/task//maps or /proc//task//maps. Extending is_proc_myself to cover these cases causes the maps to be rewritten correc

Re: [Qemu-devel] [Xen-devel] [PATCH 30/30] xen: use the BYTE-based definitions

2018-02-15 Thread Alan Robinson
(dom, "vm", vm); > > /* memory */ > -xenstore_write_int(dom, "memory/target", ram_size >> 10); // kB > -xenstore_write_int(vm, "memory", ram_size >> 20); // MB > -xenstore_write_int(vm, "maxmem"

Re: [Qemu-devel] [Xen-devel] [PATCH 30/30] xen: use the BYTE-based definitions

2018-02-15 Thread Alan Robinson
ry", ram_size / M_BYTE); > +xenstore_write_int(vm, "maxmem", ram_size / M_BYTE); > Yes - Alan smime.p7s Description: S/MIME cryptographic signature

[Bug 1875762] [NEW] Poor disk performance on sparse VMDKs

2020-04-28 Thread Alan Murtagh
Public bug reported: Found in QEMU 4.1, and reproduced on master. QEMU appears to suffer from remarkably poor disk performance when writing to sparse-extent VMDKs. Of course it's to be expected that allocation takes time and sparse VMDKs peform worse than allocated VMDKs, but surely not on the or

[Bug 1875762] Re: Poor disk performance on sparse VMDKs

2020-05-04 Thread Alan Murtagh
Thanks Stefan. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1875762 Title: Poor disk performance on sparse VMDKs Status in QEMU: New Bug description: Found in QEMU 4.1, and reproduced on mas

Re: [PATCH v3 12/20] target/arm: generate xml description of our SVE registers

2020-01-08 Thread Alan Hayward
size. There is no need to change the xml at this stage as it’ll be done the next time GDB uses the description. Blindly enabling the above when using a stub results in in GDB *constantly* asking the stub for a new XML description, spamming the pipe, so this needs something more nuanced. I plan on sending Luis my ideas I had for VG changing when using a stub. >> But this is all special casing for feature >> name="org.gnu.gdb.aarch64.sve" right? > > Yes, vg is only available if feature org.gnu.gdb.aarch64.sve is available. Nod. Alan.

Re: [PATCH v3 12/20] target/arm: generate xml description of our SVE registers

2020-01-09 Thread Alan Hayward
> On 9 Jan 2020, at 12:08, Alex Bennée wrote: > > > Alan Hayward writes: > >>> On 20 Dec 2019, at 13:18, Luis Machado wrote: >>> >>> On 12/20/19 10:14 AM, Alex Bennée wrote: >>>> Luis Machado writes: >>>>> On

Re: [PATCH v2 1/1] hw/nvme: add atomic write support

2024-09-26 Thread alan . adamson
On 9/24/24 5:15 AM, Klaus Jensen wrote: On Sep 19 17:07, Alan Adamson wrote: Adds support for the controller atomic parameters: AWUN and AWUPF. Atomic Compare and Write Unit (ACWU) is not currently supported. Writes that adhere to the ACWU and AWUPF parameters are guaranteed to be atomic

[PATCH v3 0/1] hw/nvme: add atomic write support

2024-09-26 Thread Alan Adamson
536 (requested block: offset=347799552, length=65536, flags=88) Expected CRC: d54d5f50d2569c94 Received CRC: 691e1aed4669ba33 Future Work --- - Namespace support (NAWUN, NAWUPF and NACWU) - Namespace Boundary support (NABSN, NABO, and NABSPF) - Atomic Compare and Write Unit

[PATCH v3 1/1] hw/nvme: add atomic write support

2024-09-26 Thread Alan Adamson
. Signed-off-by: Alan Adamson Reviewed-by: Klaus Jensen --- hw/nvme/ctrl.c | 157 - hw/nvme/nvme.h | 11 2 files changed, 167 insertions(+), 1 deletion(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index 9e94a2405407..c8346709a20d 100644 --- a

[PATCH v2 0/1] hw/nvme: add atomic write support

2024-09-19 Thread Alan Adamson
- Atomic Compare and Write Unit (ACWU) Alan Adamson (1): hw/nvme: add atomic write support hw/nvme/ctrl.c | 164 - hw/nvme/nvme.h | 12 2 files changed, 175 insertions(+), 1 deletion(-) -- 2.43.5

[PATCH v2 1/1] hw/nvme: add atomic write support

2024-09-19 Thread Alan Adamson
. Signed-off-by: Alan Adamson Reviewed-by: Klaus Jensen --- hw/nvme/ctrl.c | 164 - hw/nvme/nvme.h | 12 2 files changed, 175 insertions(+), 1 deletion(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index 9e94a2405407..0af46c57ee86 100644 --- a

Re: [PATCH] hw/nvme: fix attachment of private namespaces

2025-04-08 Thread alan . adamson
Tested-by: Alan Adamson Reviewed-by: Alan Adamson

[PATCH 0/1] hw/nvme: create parameter to enable/disable cmic on subsystem

2025-04-08 Thread Alan Adamson
le: -device nvme-subsys,id=subsys0,cmic=on \ -device nvme,serial=deadbeef,id=nvme0,subsys=subsys0,atomic.dn=off,atomic.awun=31,atomic.awupf=15 \ -drive id=ns1,file=/dev/nullb3,if=none \ -device nvme-ns,drive=ns1,bus=nvme0,nsid=1,shared=false Alan Adamson (1): hw/nvme: create

Re: [PATCH 0/1] hw/nvme: create parameter to enable/disable cmic on subsystem

2025-04-09 Thread alan . adamson
On 4/8/25 11:47 PM, Klaus Jensen wrote: On Apr 8 15:56, Alan Adamson wrote: While testing Linux atomic writes with qemu-nvme v10.0.0-rc1, Linux was incorrectly displaying atomic_write_max_bytes # cat /sys/block/nvme0n1/queue/atomic_write_max_bytes 0 # nvme id-ctrl /dev/nvme0n1 | grep awupf

[PATCH 1/1] hw/nvme: create parameter to enable/disable cmic on subsystem

2025-04-08 Thread Alan Adamson
Allow the value of CMIC to to be set via a new subsystem specific parameter. This removes the requirement that all subsystems must have the CMIC bit enabled. New NVMe Subsystem QEMU Parameter (See NVMe Specification for details): ,cmic=BOOLEAN (default: off) Signed-off-by: Alan Adamson

[PATCH v2] hw/nvme: CMIC.MCTRS should be set automatically for multi-controller subsystems or by parameter

2025-04-10 Thread Alan Adamson
Parameter (See NVMe Specification for details): ,cmic-mctrs=BOOLEAN (default: off) Signed-off-by: Alan Adamson --- hw/nvme/ctrl.c | 15 ++- hw/nvme/nvme.h | 2 ++ hw/nvme/subsys.c | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme

[PATCH v2 0/1] hw/nvme: CMIC.MCTRS should be set automatically for multi-controller subsystems or by parameter

2025-04-10 Thread Alan Adamson
v2: - Change the parameter name from "cmic" to "cmic-mctrs". - If there is more than 1 controller in a subsystem, set CMIC.MCTRS for each controller whether or not the cmic-mctrs parameter is set. While testing Linux atomic writes with qemu-nvme v10.0.0-rc1, Linux was incorrectly displa

[PATCH v3 1/1] hw/nvme: CMIC.MCTRS should be set automatically for multi-controller subsystems or by parameter

2025-05-01 Thread Alan Adamson
Parameter (See NVMe Specification for details): ,cmic-mctrs=BOOLEAN (default: off) Signed-off-by: Alan Adamson --- hw/nvme/ctrl.c | 15 ++- hw/nvme/nvme.h | 2 ++ hw/nvme/subsys.c | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/hw/nvme/ctrl.c b/hw/nvme

[PATCH v3 0/1] hw/nvme: CMIC.MCTRS should be set automatically for multi-controller subsystems or by parameter

2025-05-01 Thread Alan Adamson
systems. ,cmic-mctrs=BOOLEAN (default: off) Example: -device nvme-subsys,id=subsys0,cmic-mctrs=on \ -device nvme,serial=deadbeef,id=nvme0,subsys=subsys0,atomic.dn=off,atomic.awun=31,atomic.awupf=15 \ -drive id=ns1,file=/dev/nullb0,if=none \ -device nvme-ns,drive=ns1,bus=nvm

hw/nvme: Issue with multiple controllers behind a subsystem

2025-04-04 Thread alan . adamson
llers. I'm sending out diffs that resolve the problem but would like to get some feedback before sending a formal patch. See below. Thanks, Alan Adamson [root@localhost qemu-subsys]# git describe v10.0.0-rc2 [root@localhost qemu-subsys]# QEMU NVMe Config -device n

Re: [PATCH v3 1/1] hw/nvme: CMIC.MCTRS should be set automatically for multi-controller subsystems or by parameter

2025-05-20 Thread alan . adamson
Reposting. Alan On 5/1/25 11:45 AM, Alan Adamson wrote: If there are multiple controllers in a subsystem, CMIC.MCTRS should be set to on for all controllers. For single controller subsystems, CMIC.MCTRS will be off by default. A new subsystem specific parameter will allow setting CMIC.MCTRS

[PATCH 2/2] hw/nvme: add atomic boundary support

2025-06-02 Thread Alan Adamson
=UINT16 (default: 0) See the NVMe Specification for more information. Signed-off-by: Alan Adamson --- hw/nvme/ctrl.c | 53 ++ hw/nvme/ns.c | 36 ++ hw/nvme/nvme.h | 8 3 files changed, 97 insertions(+) diff

[PATCH 1/2] hw/nvme: enable ns atomic writes

2025-06-02 Thread Alan Adamson
NVMe Specification for more information. Signed-off-by: Alan Adamson --- hw/nvme/ctrl.c | 23 +++ hw/nvme/ns.c | 38 ++ hw/nvme/nvme.h | 6 ++ 3 files changed, 67 insertions(+) diff --git a/hw/nvme/ctrl.c b/hw/nvme/ctrl.c index fd935507

[PATCH 0/2] Add support for NVMe Namespace and Boundary Atomic Parameters

2025-06-02 Thread Alan Adamson
not subject to partial updates, thereby improving the robustness of atomic operations across boundaries. See the NVMe Specification for more information. Alan Adamson (2): hw/nvme: enable ns atomic writes hw/nvme: add atomic boundary support hw/nv

Re: [PATCH 2/2] hw/nvme: revert CMIC behavior

2025-06-03 Thread alan . adamson
where this was only set if an nvme-subsys device was explicitly created (to configure a subsystem with multiple controllers/namespaces). Revert the behavior to only set CMIC.MCTRS if an nvme-subsys device is created explicitly. Reported-by: Alan Adamson Fixes: cd59f50ab017 ("hw/nvme: alwa

Re: [Qemu-devel] [PATCH v2 1/2] QEMUSizedBuffer based QEMUFile

2014-09-16 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 08/07/2014 04:24 AM, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > This is based on Stefan and Joel's patch that creates a QEMUFile that goes > > to a memory buffer; from: Hi

Re: [Qemu-devel] [PATCH v3 1/2] QEMUSizedBuffer based QEMUFile

2014-09-17 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > This is based on Stefan and Joel's patch that creates a QEMUFile that goes > to a memory buffer; from: Actually, just spotted a bug in this; v4 coming shortly. Dave

Re: [Qemu-devel] [PATCH v4] Add machine parameter qemu-kvm-migration for live migrate compatibility with qemu-kvm

2014-09-25 Thread Dr. David Alan Gilbert
-kvm > tree has been merged (or even before that), but it's been some > years ago already. It's amazing what different combinations of QEMU people have out there; and it seems reasonable to let Alex fix this problem if it helps him; there's no reason to deny others the same fix. Dave -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH] -machine vmport=off: Allow disabling of VMWare ioport emulation

2014-09-25 Thread Dr. David Alan Gilbert
es > Cc: m...@redhat.com; qemu-devel@nongnu.org; arm...@redhat.com; Dr. David Alan > Gilbert; aligu...@amazon.com; Anthony PERARD > Subject: Re: [Qemu-devel] [PATCH] -machine vmport=off: Allow disabling of > VMWare ioport emulation > > Hi, > > > It was disabled in

Re: [Qemu-devel] [PATCH] -machine vmport=off: Allow disabling of VMWare ioport emulation

2014-09-25 Thread Dr. David Alan Gilbert
* Slutz, Donald Christopher (dsl...@verizon.com) wrote: > On 09/25/14 11:07, Dr. David Alan Gilbert wrote: > > * Slutz, Donald Christopher (dsl...@verizon.com) wrote: > >> What is happening with this patch? I would like to use this code. > > I need to rework it for the new

Re: [Qemu-devel] [PATCH v4 1/2] QEMUSizedBuffer based QEMUFile

2014-09-29 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 09/17/2014 05:26 AM, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > This is based on Stefan and Joel's patch that creates a QEMUFile that goes > > to a memory buffer; from:

Re: [Qemu-devel] [PATCHv2 1/2] util: introduce bitmap_try_new

2014-10-01 Thread Dr. David Alan Gilbert
tmap_try_new use that and then fix up those users as we convert them to use the try? Dave > > static inline void bitmap_zero(unsigned long *dst, long nbits) > -- > 1.7.9.5 > > -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH] qemu-file: Add copyright header to qemu-file.c

2014-10-01 Thread Dr. David Alan Gilbert
ey can confirm > if they are OK with the copyright/license information being added. Since it's come from vl.c that seems to make sense. It should probably go to the stable branch as well, since reading the ~/LICENSE file would make you think it's GPLd. Reviewed-by: Dr. David Alan

Re: [Qemu-devel] [PATCH v4 00/47] Postcopy implementation

2014-10-03 Thread Dr. David Alan Gilbert
I've updated our github at: https://github.com/orbitfp7/qemu/tree/wp3-postcopy to have this version. and it corresponds to the tag: https://github.com/orbitfp7/qemu/releases/tag/wp3-postcopy-v4 Dave * Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David

Re: [Qemu-devel] [PATCH 10/17] mm: rmap preparation for remap_anon_pages

2014-10-06 Thread Dr. David Alan Gilbert
ither 1) get caught by userfault etc or 2) must succeed in it's access and we'll have that happening somewhere between thousands and millions of times to pages in no particular order, so we need to avoid creating millions of mappings. Dave > > Linus -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] Fullscreen Bug with GTK

2014-10-06 Thread Dr. David Alan Gilbert
e ago. > > Patch trades one bug for another. Hiding the menu bar also kills the > accelerator keys, which is especially problematic for the fullscreen > hotkey as there is no way out of fullscreen mode then. Dave -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH v2 0/1] -machine vmport=off: Allow disabling of VMWare ioport emulation

2014-10-06 Thread Dr. David Alan Gilbert
* Don Slutz (dsl...@verizon.com) wrote: > Changes v1 to v2 (Don Slutz): > make vmport a pc & q35 only machine opt I.E. a machine property. > > Dr. David Alan Gilbert (1): > -machine vmport=off: Allow disabling of VMWare ioport emulation Thanks for updating this! Dave

Re: [Qemu-devel] [PATCH v4 38/47] Add assertion to check migration_dirty_pages

2014-10-06 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > > > I've seen it go negative once during dev, it shouldn't > > happen. > > You can move it earlier, perhaps even as patch 1, since it does not

Re: [Qemu-devel] [PATCH v4 32/47] postcopy: ram_enable_notify to switch on userfault

2014-10-06 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > +static int postcopy_ram_sensitise_area(const char *block_name, void > > *host_addr, > > + ram_addr_t offset, r

Re: [Qemu-devel] [PATCH v4 20/47] Add migration-capability boolean for postcopy-ram.

2014-10-06 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 10/03/2014 11:47 AM, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Signed-off-by: Dr. David Alan Gilbert > > Reviewed-by: Eric Blake > > --- > > inc

Re: [Qemu-devel] [PATCH v4 00/47] Postcopy implementation

2014-10-07 Thread Dr. David Alan Gilbert
* Cristian Klein (cristian.kl...@cs.umu.se) wrote: > On 04 Oct 2014, at 4:21 , Dr. David Alan Gilbert wrote: > > > > > I've updated our github at: > > https://github.com/orbitfp7/qemu/tree/wp3-postcopy > > > > to have this version. > > > >

Re: [Qemu-devel] [PATCH v4 19/47] Rework loadvm path for subloops

2014-10-07 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > > > +/* These are ORable flags */ > > ... make them an "enum". OK, will do - I'd generally tended to avoid using enum for things that were O

Re: [Qemu-devel] [PATCH v4 08/47] socket shutdown

2014-10-07 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > +#ifndef WIN32 > > +if (rd) { > > +how = SHUT_RD; > > +} > > + > > +if (wr) { > > +how = rd ? SHU

Re: [Qemu-devel] [PATCH v4 19/47] Rework loadvm path for subloops

2014-10-07 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 07/10/2014 10:58, Dr. David Alan Gilbert ha scritto: > > > >>> > > +if (exitcode & LOADVM_EXITCODE_QUITPARENT) { > >>> > > +DPRINTF("loadvm_handlers_state_main: End of loop wit

Re: [Qemu-devel] [PATCH v4 47/47] End of migration for postcopy

2014-10-07 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > +mis->postcopy_ram_state); > > +if (mis->postcopy_ram_state == POSTCOPY_RAM_INCOMING_ADVISE) { > > +/* > > + * Where

Re: [Qemu-devel] [PATCH 08/17] mm: madvise MADV_USERFAULT

2014-10-07 Thread Dr. David Alan Gilbert
emory. Aren't DONTNEED and DONTDUMP similar cases of madvise operations that are expected to do what they say ? > I would suggest to consider to use some other interface for the > functionality: a new syscall or, perhaps, mprotect(). Dave > -- > Kirill A. Shutemov -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH 08/17] mm: madvise MADV_USERFAULT

2014-10-07 Thread Dr. David Alan Gilbert
* Kirill A. Shutemov (kir...@shutemov.name) wrote: > On Tue, Oct 07, 2014 at 11:46:04AM +0100, Dr. David Alan Gilbert wrote: > > * Kirill A. Shutemov (kir...@shutemov.name) wrote: > > > On Fri, Oct 03, 2014 at 07:07:58PM +0200, Andrea Arcangeli wrote: > > > > MADV_U

Re: [Qemu-devel] [PATCH v4 37/47] Page request: Consume pages off the post-copy queue

2014-10-07 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 03/10/2014 19:47, Dr. David Alan Gilbert (git) ha scritto: > > +/* > > + * Don't break host-page chunks up with queue items > > + * so only unqueue if, > > + * a) The last

Re: [Qemu-devel] [PATCH 10/17] mm: rmap preparation for remap_anon_pages

2014-10-07 Thread Dr. David Alan Gilbert
* Paolo Bonzini (pbonz...@redhat.com) wrote: > Il 07/10/2014 19:07, Dr. David Alan Gilbert ha scritto: > >> > > >> > So I'd *much* rather have a "write()" style interface (ie _copying_ > >> > bytes from user space into a newly allocated p

Re: [Qemu-devel] [PATCH 10/17] mm: rmap preparation for remap_anon_pages

2014-10-07 Thread Dr. David Alan Gilbert
lt is less general. Dave > remapping anonymous pages involves page table games that really aren't > necessarily a good idea, and tlb invalidates for the old page etc. > Just don't do it. > >Linus -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH v4 36/47] Page request: Process incoming page request

2014-10-08 Thread Dr. David Alan Gilbert
("migrate_handle_rp_reqpages: at %zx for len %zx", start, len); > >+DPRINTF("migrate_handle_rp_reqpages: in %s start %zx len %zx", > >+rbname, start, len); > >+ > >+/* Round everything up to our host page size */ > >+long our_host_ps

Re: [Qemu-devel] [PATCH v4 36/47] Page request: Process incoming page request

2014-10-08 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > On 2014/10/8 15:49, Dr. David Alan Gilbert wrote: > >* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > > > >>> typedef struct Visitor Visitor; > >>>@@ -80,6 +81,6 @@ typedef struct FWCfg

Re: [Qemu-devel] [PATCH v5 1/2] QEMUSizedBuffer based QEMUFile

2014-10-08 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > On 2014/9/29 17:41, Dr. David Alan Gilbert (git) wrote: > >+static ssize_t qsb_grow(QEMUSizedBuffer *qsb, size_t new_size) > >+{ > >+size_t needed_chunks, i; > >+ > >+if (qsb->size < new_si

Re: [Qemu-devel] [PATCH v5 1/2] QEMUSizedBuffer based QEMUFile

2014-10-08 Thread Dr. David Alan Gilbert
+ > >+const QEMUSizedBuffer *qemu_buf_get(QEMUFile *f) > >+{ > >+QEMUBuffer *p; > >+ > >+qemu_fflush(f); > >+ > >+p = f->opaque; > >+ > >+return p->qsb; > >+} > >+ > >+static const QEMUFileOps buf_read_ops = { > >+.get_buffer = buf_get_buffer, > >+.close = buf_close, > >+}; > >+ > >+static const QEMUFileOps buf_write_ops = { > >+.put_buffer = buf_put_buffer, > >+.close = buf_close, > >+}; > >+ > >+QEMUFile *qemu_bufopen(const char *mode, QEMUSizedBuffer *input) > >+{ > >+QEMUBuffer *s; > >+ > >+if (mode == NULL || (mode[0] != 'r' && mode[0] != 'w') || > >+mode[1] != '\0') { > >+error_report("qemu_bufopen: Argument validity check failed"); > >+return NULL; > >+} > >+ > >+s = g_malloc0(sizeof(QEMUBuffer)); > >+if (mode[0] == 'r') { > >+s->qsb = input; > >+} > >+ > >+if (s->qsb == NULL) { > >+s->qsb = qsb_create(NULL, 0); > >+} > >+if (!s->qsb) { > >+g_free(s); > >+error_report("qemu_bufopen: qsb_create failed"); > >+return NULL; > >+} > >+ > >+ > >+if (mode[0] == 'r') { > >+s->file = qemu_fopen_ops(s, &buf_read_ops); > >+} else { > >+s->file = qemu_fopen_ops(s, &buf_write_ops); > >+} > >+return s->file; > >+} > > > > -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCHv4] migration: catch unknown flags in ram_load

2014-06-10 Thread Dr. David Alan Gilbert
d at least somewhere in the code of RDMA. There's also RAM_SAVE_FLAG_CONTINUE that's used as a tweak to make for smaller headers. Dave > For that matter, we could handle the hook separately and everything > else in the switch statement. This would immediately solve the is

Re: [Qemu-devel] [PATCH 02/27] vmstate: Return error in case of error

2014-06-17 Thread Dr. David Alan Gilbert
trace_vmstate_load_field_error(field->name, ret); > return ret; > } Reviewed-by: Dr. David Alan Gilbert I wonder about turning that trace into an error_report; the process is doomed anyway at this point and it would be nice to know why. Dave -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH 03/27] vmstate: Refactor & increase tests for primitive types

2014-06-17 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > This commit refactor the simple tests to test all integer types. We > move to hex because it is easier to read values of different types. > > Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert > --- > tests/te

Re: [Qemu-devel] [PATCH 01/27] migration: Remove unneeded minimum_version_id_old

2014-06-17 Thread Dr. David Alan Gilbert
* Juan Quintela (quint...@redhat.com) wrote: > Once there, make checkpatch happy. > > Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert > --- > hw/usb/hcd-ohci.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/hw/usb

Re: [Qemu-devel] [PATCH 04/27] vmstate: Port versioned tests to new format

2014-06-17 Thread Dr. David Alan Gilbert
); > +FIELD_EQUAL(d); > +FIELD_NOT_EQUAL(e); > +FIELD_NOT_EQUAL(f); > + > +SUCCESS(load_vmstate(&vmstate_simple_skipping, &obj, &obj_clone, > + obj_versioned_copy, 2, wire_simple_skip, > + sizeof(wire_simple_skip))); > + > +FIELD_EQUAL(skip_c_e); > +FIELD_EQUAL(a); > +FIELD_EQUAL(b); > +FIELD_NOT_EQUAL(c); > +FIELD_EQUAL(d); > +FIELD_NOT_EQUAL(e); > +FIELD_EQUAL(f); > } Couldn't those functions just be merged and take a flag? > +#undef FIELD_EQUAL > +#undef FIELD_NOT_EQUAL > > int main(int argc, char **argv) > { > @@ -490,12 +499,10 @@ int main(int argc, char **argv) > > g_test_init(&argc, &argv, NULL); > g_test_add_func("/vmstate/simple/primitive", test_simple_primitive); > -g_test_add_func("/vmstate/versioned/load/v1", test_load_v1); > -g_test_add_func("/vmstate/versioned/load/v2", test_load_v2); > -g_test_add_func("/vmstate/field_exists/load/noskip", test_load_noskip); > -g_test_add_func("/vmstate/field_exists/load/skip", test_load_skip); > -g_test_add_func("/vmstate/field_exists/save/noskip", test_save_noskip); > -g_test_add_func("/vmstate/field_exists/save/skip", test_save_skip); > +g_test_add_func("/vmstate/simple/v1", test_simple_v1); > +g_test_add_func("/vmstate/simple/v2", test_simple_v2); > +g_test_add_func("/vmstate/simple/skip", test_simple_skip); > +g_test_add_func("/vmstate/simple/no_skip", test_simple_no_skip); > g_test_run(); > > close(temp_fd); > -- > 1.9.3 > > -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH 00/46] Postcopy implementation

2014-08-11 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 07/10/2014 05:29 AM, Dr. David Alan Gilbert wrote: > > * Paolo Bonzini (pbonz...@redhat.com) wrote: > >> Il 07/07/2014 16:02, Dr. David Alan Gilbert ha scritto: > >>>>> Could you have instead a "migra

Re: [Qemu-devel] [PATCH v2 43/43] Start documenting how postcopy works.

2014-08-11 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 08/11/2014 08:29 AM, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > Signed-off-by: Dr. David Alan Gilbert > > --- > > docs/migration.txt | 150 > >

Re: [Qemu-devel] [RFC PATCH v3 1/6] QEMUSizedBuffer/QEMUFile

2014-08-11 Thread Dr. David Alan Gilbert
ven QEMUSizedBuffer. > > + * > > + * @qsb : A QEMUSizedBuffer > > + * > > + * Returns a clone of @qsb > > + */ > > +QEMUSizedBuffer *qsb_clone(const QEMUSizedBuffer *qsb) > > +{ > > +QEMUSizedBuffer *out = qsb_create(NULL, qsb_get_length(qsb)); > > +size_t i; > > +off_t pos = 0; > > + > > +for (i = 0; i < qsb->n_iov; i++) { > > +pos += qsb_write_at(out, qsb->iov[i].iov_base, > > +pos, qsb->iov[i].iov_len); > > If qsb_write_at() return -ENOMEM, just simply add it to pos ? qsb_create uses g_new0 so it will abort on out of memory; what should qsb_clone do if qsb_write_at returns -ENOMEM? (Admittedly anything is better than getting the position wrong). I guess the choice is to allow it to return NULL, tidying up and offering the chance sometime in the future of tidying up the other allocators. Dave > > Best regards, > -Gonglei -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK

Re: [Qemu-devel] [PATCH v2 19/43] postcopy: OS support test

2014-08-12 Thread Dr. David Alan Gilbert
* zhanghailiang (zhang.zhanghaili...@huawei.com) wrote: > On 2014/8/11 22:29, Dr. David Alan Gilbert (git) wrote: > >From: "Dr. David Alan Gilbert" > > > >+testarea2 = mmap(NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | > >+

  1   2   3   4   5   6   7   8   9   10   >