[PATCH v4] docs/system/devices/canokey: Document limitations on usb-ehci

2022-06-25 Thread MkfsSion
Suggested-by: Hongren (Zenithal) Zheng Signed-off-by: YuanYang Meng --- v4: Adopt Zenithal's suggestion of repharsing the limitation docs/system/devices/canokey.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/docs/system/devices/canokey.rst b/docs/system/devices/canokey.rst

[PATCH v4 1/2] hw: canokey: Remove HS support as not compliant to the spec

2022-06-25 Thread MkfsSion
Canokey core currently using 16 bytes as maximum packet size for control endpoint, but to run the device in high-speed a 64 bytes maximum packet size is required according to USB 2.0 specification. Since we don't acutally need to run the device in high-speed, simply don't assign high member in

[PATCH v3 1/2] hw: canokey: Remove HS support as not compliant to the spec

2022-06-24 Thread MkfsSion
Canokey core currently using 16 bytes as maximum packet size for control endpoint, but to run the device in high-speed a 64 bytes maximum packet size is required according to USB 2.0 specification. Since we don't acutally need to run the device in high-speed, simply don't assign high member in

[PATCH v3 2/2] docs/system/devices/canokey: Document limitations on usb-ehci

2022-06-24 Thread MkfsSion
Suggested-by: Hongren (Zenithal) Zheng Signed-off-by: YuanYang Meng --- docs/system/devices/canokey.rst | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/system/devices/canokey.rst b/docs/system/devices/canokey.rst index 169f99b8eb..650702ad8a 100644 ---

[PATCH v2 1/2] hw: canokey: Remove HS support as not compliant to the spec

2022-06-24 Thread MkfsSion
Canokey core currently using 16 bytes as maximum packet size for control endpoint, but to run the device in high-speed a 64 bytes maximum packet size is required according to USB 2.0 specification. Since we don't acutally need to run the device in high-speed, simply don't assign high member in

[PATCH v2 2/2] docs/system/devices/canokey: Document limitations on usb-ehci

2022-06-24 Thread MkfsSion
Suggested-by: Hongren (Zenithal) Zheng Signed-off-by: MkfsSion --- docs/system/devices/canokey.rst | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/system/devices/canokey.rst b/docs/system/devices/canokey.rst index 169f99b8eb..650702ad8a 100644 --- a/docs

[PATCH] hw: canokey: Don't run the device in high-speed

2022-06-23 Thread MkfsSion
* Canokey core currently using 16 bytes as maximum packet size for * EP, but to run the device in full-speed a 64 bytes maximum size is * required according to USB 2.0 specification. Since we don't acutally * need to run the device in high-speed, simply don't assign high member * in USBDesc.

Re: [PATCH v2] vl: Add support to set properties when using JSON syntax for -device via -set option

2022-01-21 Thread MkfsSion
On 2022/1/19 22:08, Markus Armbruster wrote: > MkfsSion writes: > >> When using JSON syntax for -device, -set option can not find device >> specified in JSON by id field. The following commandline is an example: >> >> $ qemu-system-x86_64 -device '{"id&quo

Re: [PATCH v2] vl: Add support to set properties when using JSON syntax for -device via -set option

2022-01-11 Thread MkfsSion
ping https://lore.kernel.org/qemu-devel/20211224072511.63894-1-mkfss...@mkfssion.com

Re: [PATCH v2] vl: Add support to set properties when using JSON syntax for -device via -set option

2022-01-03 Thread MkfsSion
ping https://lore.kernel.org/qemu-devel/20211229064421.5LPUBTk_b7lwFSu6jdh7beB7kZHoVtGGztQSJR1SClI@z/

[PATCH v2] vl: Add support to set properties when using JSON syntax for -device via -set option

2021-12-23 Thread MkfsSion
When using JSON syntax for -device, -set option can not find device specified in JSON by id field. The following commandline is an example: $ qemu-system-x86_64 -device '{"id":"foo"}' -set device.foo.bar=1 qemu-system-x86_64: -set device.foo.bar=1: there is no device "foo" defined The patch

Re: [PATCH] vl: Add -set options to device opts dict when using JSON syntax for -device

2021-12-21 Thread MkfsSion
On 2021/12/21 19:26, Markus Armbruster wrote:> Two issues, and only looks fixable. > > -device accepts either a QemuOpts or a JSON argument. > > It parses the former with qemu_opts_parse_noisily() into a QemuOpt > stored in @qemu_device_opts. > > It parses the latter with qobject_from_json()

[PATCH] vl: Add -set options to device opts dict when using JSON syntax for -device

2021-12-21 Thread MkfsSion
When using JSON syntax for -device, -set option can not find device specified in JSON by id field. The following commandline is an example: $ qemu-system-x86_64 -device '{"id":"foo"}' -set device.foo.bar=1 qemu-system-x86_64: -set device.foo.bar=1: there is no device "foo" defined The patch adds

Re: [PATCH] vl: Add opts to device opts list when using JSON syntax for -device

2021-12-21 Thread MkfsSion
Sorry, the patch is not well tested and it causes duplicate devices creation. I have send another patch to the mailing list to fix the issue. On 2021/12/21 16:25, Philippe Mathieu-Daudé wrote: > Cc'ing Markus. > > On 12/20/21 09:45, MkfsSion wrote: >> When using JSON syntax fo

[PATCH] vl: Add opts to device opts list when using JSON syntax for -device

2021-12-20 Thread MkfsSion
" defined The patch adds device opts to device opts list when a device opts get parsed. Signed-off-by: MkfsSion --- softmmu/vl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/softmmu/vl.c b/softmmu/vl.c index 620a1f1367..0dd5acbc1a 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -34