Re: PCI/GPU Passthrough with xen

2020-01-31 Thread Jim Fehlig
On 1/30/20 1:24 AM, Christoph wrote: Hi All, it is possible to use pci/gpu passthrough with xen and libvirt? If yes, how is the syntax? Can I get an example? Yes, host PCI devices can be passed to xen guests using libvirt. Below is example config of a "managed" PCI host device. For more detai

Re: Does Libvirt's json parser support single quoted string in qmp json string?

2020-01-31 Thread Eric Blake
On 1/31/20 4:38 AM, Peter Luo wrote: error: internal error: cannot parse json {"execute": "block-commit", "arguments": { "device": "drive-virtio-disk2", "job-id": "job100", "base":'json:{"encrypt.key-secret":"vol-38973xjl.secret","driver":"qcow2","file":{"driver":"file","filename":"/pitrix/data

Re: Does Libvirt's json parser support single quoted string in qmp json string?

2020-01-31 Thread Peter Krempa
On Fri, Jan 31, 2020 at 19:14:46 +0800, Peter Luo wrote: > > Hi Peter Krempa, Hi, please don't top-post on techincal mailing lists. > Thanks for your quick response, yes, I know since libvirt 5.8, the -blockdev > is used for disk by default. > However we have to maintain the old releases for t

Re: Does Libvirt's json parser support single quoted string in qmp json string?

2020-01-31 Thread Peter Luo
Hi Peter Krempa, Thanks for your quick response, yes, I know since libvirt 5.8, the -blockdev is used for disk by default. However we have to maintain the old releases for the production environment for a while, so I still need use the old way to create the disk. >"base" argument must b

Re: Does Libvirt's json parser support single quoted string in qmp json string?

2020-01-31 Thread Peter Krempa
On Fri, Jan 31, 2020 at 18:38:33 +0800, Peter Luo wrote: > Hi All, > > > > I’m using qmp command via “virsh qemu-monitor-command” to perform block > related jobs. > > And in my case, I execute block-commit to commit the changes in the top image > to the base image which is encrypted. > >

Does Libvirt's json parser support single quoted string in qmp json string?

2020-01-31 Thread Peter Luo
Hi All, I’m using qmp command via “virsh qemu-monitor-command” to perform block related jobs. And in my case, I execute block-commit to commit the changes in the top image to the base image which is encrypted. So in the base parameter, I need a json string which is single quoted to supp