RE: Does "-object" support structured options now?

2024-03-06 Thread Chun Feng Wu
Yes, you’re right, QEMU >=6.0.0 works well, I failed test because I did it on QEMU 4.2.1 From: Daniel P. Berrangé Date: Wednesday, March 6, 2024 at 22:43 To: Chun Feng Wu , qemu-devel@nongnu.org Subject: [EXTERNAL] Re: Does "-object" support structured options now? On Wed, Mar 0

Re: Does "-object" support structured options now?

2024-03-06 Thread Daniel P . Berrangé
On Wed, Mar 06, 2024 at 02:36:08PM +, Daniel P. Berrangé wrote: > On Wed, Mar 06, 2024 at 02:33:05PM +, Chun Feng Wu wrote: > > Thanks Daniel for your response! > > > > I tried it with the following cmd > > > > qemu-system-x86_64 [other options...] \ > > -object > > '{"qom-type":"throt

Re: Does "-object" support structured options now?

2024-03-06 Thread Markus Armbruster
Chun Feng Wu writes: > Thanks Daniel for your response! > > I tried it with the following cmd > > qemu-system-x86_64 [other options...] \ > -object > '{"qom-type":"throttle-group","id":"limits0","limits":{"iops-total":200}}' > > And I got error: > qemu-system-x86_64: -object > {"qom-type":"th

Re: Does "-object" support structured options now?

2024-03-06 Thread Daniel P . Berrangé
On Wed, Mar 06, 2024 at 02:33:05PM +, Chun Feng Wu wrote: > Thanks Daniel for your response! > > I tried it with the following cmd > > qemu-system-x86_64 [other options...] \ > -object > '{"qom-type":"throttle-group","id":"limits0","limits":{"iops-total":200}}' > > And I got error: > qemu

RE: Does "-object" support structured options now?

2024-03-06 Thread Chun Feng Wu
m-x86_64: -object {"qom-type":"throttle-group","id":"limits0","limits":{"iops-total":200}}: Parameter 'id' is missing Do you know why such error happens? -- Thanks and Regards, Wu From: Daniel P. Berrangé Date: Monday, March

Re: Does "-object" support structured options now?

2024-03-04 Thread Daniel P . Berrangé
On Mon, Mar 04, 2024 at 06:43:19AM +, Chun Feng Wu wrote: > Hi, > > I noticed that throttle-group can be created with “-object”, however, per > qemu doc(https://github.com/qemu/qemu/blob/master/docs/throttle.txt), > “-object” doesn’t support structured options at that moment: > > “ > A thro