RE: [PATCH] vl: transform QemuOpts device to JSON syntax device

2022-02-24 Thread Duan, Zhenzhong
>-Original Message- >From: Kevin Wolf >Sent: Thursday, February 24, 2022 7:31 PM >To: Duan, Zhenzhong >Cc: qemu-devel@nongnu.org; pbonz...@redhat.com; ebl...@redhat.com; >m...@redhat.com; pkre...@redhat.com; ler...@redhat.com >Subject: Re: [PATCH] vl: transform Qe

Re: [PATCH] vl: transform QemuOpts device to JSON syntax device

2022-02-24 Thread Kevin Wolf
Am 24.02.2022 um 07:06 hat Zhenzhong Duan geschrieben: > While there are mixed use of traditional -device option and JSON > syntax option, QEMU reports conflict, e.x: > > /usr/libexec/qemu-kvm -nodefaults \ > -device > '{"driver":"virtio-scsi-pci","id":"scsi0","bus":"pci.0","addr":"0x02.0"}' \

RE: [PATCH] vl: transform QemuOpts device to JSON syntax device

2022-02-24 Thread Duan, Zhenzhong
e: [PATCH] vl: transform QemuOpts device to JSON syntax device > >On Thu, Feb 24, 2022 at 10:09:35AM +0100, Peter Krempa wrote: >> On Thu, Feb 24, 2022 at 09:02:02 +, Daniel P. Berrangé wrote: >> > On Thu, Feb 24, 2022 at 02:06:53PM +0800, Zhenzhong Duan wrote: >> &

Re: [PATCH] vl: transform QemuOpts device to JSON syntax device

2022-02-24 Thread Peter Krempa
On Thu, Feb 24, 2022 at 09:02:02 +, Daniel P. Berrangé wrote: > On Thu, Feb 24, 2022 at 02:06:53PM +0800, Zhenzhong Duan wrote: > > While there are mixed use of traditional -device option and JSON > > syntax option, QEMU reports conflict, e.x: > > > > /usr/libexec/qemu-kvm -nodefaults \ > >

Re: [PATCH] vl: transform QemuOpts device to JSON syntax device

2022-02-24 Thread Daniel P . Berrangé
On Thu, Feb 24, 2022 at 10:09:35AM +0100, Peter Krempa wrote: > On Thu, Feb 24, 2022 at 09:02:02 +, Daniel P. Berrangé wrote: > > On Thu, Feb 24, 2022 at 02:06:53PM +0800, Zhenzhong Duan wrote: > > > While there are mixed use of traditional -device option and JSON > > > syntax option, QEMU

Re: [PATCH] vl: transform QemuOpts device to JSON syntax device

2022-02-24 Thread Daniel P . Berrangé
On Thu, Feb 24, 2022 at 02:06:53PM +0800, Zhenzhong Duan wrote: > While there are mixed use of traditional -device option and JSON > syntax option, QEMU reports conflict, e.x: > > /usr/libexec/qemu-kvm -nodefaults \ > -device >

[PATCH] vl: transform QemuOpts device to JSON syntax device

2022-02-23 Thread Zhenzhong Duan
While there are mixed use of traditional -device option and JSON syntax option, QEMU reports conflict, e.x: /usr/libexec/qemu-kvm -nodefaults \ -device '{"driver":"virtio-scsi-pci","id":"scsi0","bus":"pci.0","addr":"0x02.0"}' \ -device virtio-scsi-pci,id=scsi1,bus=pci.0 It breaks with: