[PATCH 2/2] docs/system/devices/canokey: update implementations and web console

2023-06-12 Thread Hongren (Zenithal) Zheng
An nRF52 implementation and a new web console was introduced. The old web console is hosted in a different URL now. Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/canokey.rst | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/system/devices

[PATCH 1/2] docs/system/devices/canokey: fix recursive cloning

2023-06-12 Thread Hongren (Zenithal) Zheng
canokey-qemu contains submodules so it needs recursive cloning Reported-By: tlaurion Link: https://github.com/canokeys/canokey-qemu/issues/3 Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/canokey.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs

[PATCH 0/2] canokey: documentation fixes

2023-06-12 Thread Hongren (Zenithal) Zheng
/qemu-devel/ZE5z+2WbvVpTa82H@Sun/ Thanks, Hongren (Zenithal) Zheng (2): docs/system/devices/canokey: fix recursive cloning docs/system/devices/canokey: update implementations and web console docs/system/devices/canokey.rst | 11 +++ 1 file changed, 7 insertions(+), 4 deletions

[PATCH] hw/usb/canokey: change license to GPLv2+

2023-04-30 Thread Hongren (Zenithal) Zheng
nokeys.org * Written by Hongren (Zenithal) Zheng * - * This code is licensed under the Apache-2.0. + * This code is licensed under the GPL v2 or later. */ #include "qemu/osdep.h" diff --git a/hw/usb/canokey.h b/hw/usb/canokey.h index 24cf304203..e528889d33 100644 --- a/hw/usb/ca

Re: [PATCH v2 0/3] CanoKey: Fix xHCI compatibility and CCID ZLP

2022-07-02 Thread Hongren (Zenithal) Zheng
On Fri, Jul 01, 2022 at 12:51:06PM +0200, Gerd Hoffmann wrote: > On Thu, Jun 23, 2022 at 11:16:39PM +0800, Hongren (Zenithal) Zheng wrote: > > On Mon, Jun 13, 2022 at 08:12:38PM +0800, Hongren (Zenithal) Zheng wrote: > > > > > --- > > > v2: > > &g

Re: [PATCH v2 0/3] CanoKey: Fix xHCI compatibility and CCID ZLP

2022-06-23 Thread Hongren (Zenithal) Zheng
On Thu, Jun 23, 2022 at 11:16:39PM +0800, Hongren (Zenithal) Zheng wrote: > BTW, as the commit "add myself as CanoKey maintainer" has been > merged, how should I submit patches on CanoKey to you and QEMU? Also I want to add CanoKey in ChangeLog/7.1 in QEMU wiki. But the account fo

Re: [PATCH v2 0/3] CanoKey: Fix xHCI compatibility and CCID ZLP

2022-06-23 Thread Hongren (Zenithal) Zheng
On Mon, Jun 13, 2022 at 08:12:38PM +0800, Hongren (Zenithal) Zheng wrote: > --- > v2: > * use usb_ep_get instead of recording ep_in_pointer > as suggested by kraxel > * CI result for v2 is at > https://gitlab.com/ZenithalHourlyRate/qemu/-/pipelines/562306905 Hi kr

[PATCH v2 3/3] docs/system/devices/usb/canokey: remove limitations on qemu-xhci

2022-06-13 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/canokey.rst | 10 -- 1 file changed, 10 deletions(-) diff --git a/docs/system/devices/canokey.rst b/docs/system/devices/canokey.rst index 169f99b8eb..c2c58ae3e7 100644 --- a/docs/system/devices/canokey.rst +++ b/docs/system

[PATCH v2 1/3] hw/usb/canokey: Fix CCID ZLP

2022-06-13 Thread Hongren (Zenithal) Zheng
CCID could send zero-length packet (ZLP) if we invoke two data_in, two packets would be concated and we could not distinguish them. The CANOKEY_EMU_EP_CTAPHID is imported from canokey-qemu.h Reported-by: MkfsSion Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 7 +++ 1 file

[PATCH v2 2/3] hw/usb/canokey: fix compatibility of qemu-xhci

2022-06-13 Thread Hongren (Zenithal) Zheng
XHCI wont poll interrupt IN endpoint if NAKed, and needs wakeup Suggested-by: Gerd Hoffmann Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index 86548923eb..8da0d65556

[PATCH v2 0/3] CanoKey: Fix xHCI compatibility and CCID ZLP

2022-06-13 Thread Hongren (Zenithal) Zheng
lines/561801062 --- v2: * use usb_ep_get instead of recording ep_in_pointer as suggested by kraxel * CI result for v2 is at https://gitlab.com/ZenithalHourlyRate/qemu/-/pipelines/562306905 Hongren (Zenithal) Zheng (3): hw/usb/canokey: Fix CCID ZLP hw/usb/canokey: fix compatibili

[PATCH 0/3] CanoKey: Fix xHCI compatibility and CCID ZLP

2022-06-12 Thread Hongren (Zenithal) Zheng
lines/561801062 Hongren (Zenithal) Zheng (3): hw/usb/canokey: Fix CCID ZLP hw/usb/canokey: fix compatibility of qemu-xhci docs/system/devices/usb/canokey: remove limitations on qemu-xhci docs/system/devices/canokey.rst | 10 -- hw/usb/canokey.c

[PATCH 3/3] docs/system/devices/usb/canokey: remove limitations on qemu-xhci

2022-06-12 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/canokey.rst | 10 -- 1 file changed, 10 deletions(-) diff --git a/docs/system/devices/canokey.rst b/docs/system/devices/canokey.rst index 169f99b8eb..c2c58ae3e7 100644 --- a/docs/system/devices/canokey.rst +++ b/docs/system

[PATCH 2/3] hw/usb/canokey: fix compatibility of qemu-xhci

2022-06-12 Thread Hongren (Zenithal) Zheng
XHCI wont poll interrupt IN endpoint if NAKed, and needs wakeup Suggested-by: Gerd Hoffmann Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 28 hw/usb/canokey.h | 1 + 2 files changed, 29 insertions(+) diff --git a/hw/usb/canokey.c b/hw/usb

[PATCH 1/3] hw/usb/canokey: Fix CCID ZLP

2022-06-12 Thread Hongren (Zenithal) Zheng
CCID could send zero-length packet (ZLP) if we invoke two data_in, two packets would be concated and we could not distinguish them. The CANOKEY_EMU_EP_CTAPHID is exported from canokey-qemu.h Reported-by: MkfsSion Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 7 +++ 1 file

Re: [PATCH] target/riscv: add zicsr/zifencei to isa_string

2022-05-23 Thread Hongren (Zenithal) Zheng
On Mon, May 23, 2022 at 09:22:15AM +1000, Alistair Francis wrote: > On Wed, May 18, 2022 at 10:50 PM Hongren (Zenithal) Zheng > wrote: > > > > Zicsr/Zifencei is not in 'I' since ISA version 20190608, > > thus to fully express the capability of the CPU, > &

[PATCH v5 2/6] hw/usb/canokey: Add trace events

2022-05-19 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c| 13 + hw/usb/trace-events | 16 2 files changed, 29 insertions(+) diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index 6cb8b7cdb0..4a08b1cbd7 100644 --- a/hw/usb/canokey.c +++ b/hw/usb/canokey.c

[PATCH v5 6/6] MAINTAINERS: add myself as CanoKey maintainer

2022-05-19 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index dff0200f70..03856c558f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2397,6 +2397,14 @@ F: hw/intc/s390_flic*.c F: include/hw/s390x/s390_flic.h L

[PATCH v5 3/6] meson: Add CanoKey

2022-05-19 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/Kconfig| 5 + hw/usb/meson.build| 5 + meson.build | 6 ++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 5 files changed, 21 insertions(+) diff --git a/hw

[PATCH v5 1/6] hw/usb: Add CanoKey Implementation

2022-05-19 Thread Hongren (Zenithal) Zheng
APIs, therefore the emulated CanoKey can communicate with the guest OS using USB. Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 300 +++ hw/usb/canokey.h | 69 +++ 2 files changed, 369 insertions(+) create mode 100644 h

[PATCH v5 5/6] docs/system/devices/usb: Add CanoKey to USB devices examples

2022-05-19 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/usb.rst | 4 1 file changed, 4 insertions(+) diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index afb7d6c226..872d916758 100644 --- a/docs/system/devices/usb.rst +++ b/docs/system/devices/usb.rst

[PATCH v5 4/6] docs: Add CanoKey documentation

2022-05-19 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/device-emulation.rst | 1 + docs/system/devices/canokey.rst | 168 +++ 2 files changed, 169 insertions(+) create mode 100644 docs/system/devices/canokey.rst Note on the qemu-xhci issue: For FIDO2 packets

[PATCH v5 0/6] Introduce CanoKey QEMU

2022-05-19 Thread Hongren (Zenithal) Zheng
4/6] for more detail This patchset passes the CI, see https://gitlab.com/ZenithalHourlyRate/qemu/-/pipelines/543016316 Hongren (Zenithal) Zheng (6): hw/usb: Add CanoKey Implementation hw/usb/canokey: Add trace events meson: Add CanoKey docs: Add CanoKey documentation docs/system/devi

[PATCH] target/riscv: add zicsr/zifencei to isa_string

2022-05-18 Thread Hongren (Zenithal) Zheng
Zicsr/Zifencei is not in 'I' since ISA version 20190608, thus to fully express the capability of the CPU, they should be exposed in isa_string. Signed-off-by: Hongren (Zenithal) Zheng --- target/riscv/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/riscv/cpu.c b/ta

Re: [PATCH v4 0/6] Introduce CanoKey QEMU

2022-03-22 Thread Hongren (Zenithal) Zheng
On Fri, Mar 04, 2022 at 11:51:19AM +0100, Gerd Hoffmann wrote: > On Sat, Feb 12, 2022 at 09:29:47PM +0800, Hongren (Zenithal) Zheng wrote: > > Hi, > > > > Is there any further feedback on this patch set. > > Sorry for the looong delay, I'm rather busy with edk2.

Re: [PATCH v4 0/6] Introduce CanoKey QEMU

2022-02-12 Thread Hongren (Zenithal) Zheng
Hi, Is there any further feedback on this patch set. Regards, Zenithal

[PATCH v4 4/6] docs: Add CanoKey documentation

2022-01-27 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/device-emulation.rst | 1 + docs/system/devices/canokey.rst | 158 +++ 2 files changed, 159 insertions(+) create mode 100644 docs/system/devices/canokey.rst diff --git a/docs/system/device-emulation.rst b

[PATCH v4 6/6] MAINTAINERS: add myself as CanoKey maintainer

2022-01-27 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e4b3a4bcdf..e46e9cdf1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2376,6 +2376,14 @@ F: hw/intc/s390_flic*.c F: include/hw/s390x/s390_flic.h L

[PATCH v4 3/6] meson: Add CanoKey

2022-01-27 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/Kconfig| 5 + hw/usb/meson.build| 3 +++ meson.build | 6 ++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 5 files changed, 19 insertions(+) diff --git a/hw

[PATCH v4 5/6] docs/system/devices/usb: Add CanoKey to USB devices examples

2022-01-27 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/usb.rst | 4 1 file changed, 4 insertions(+) diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index afb7d6c226..872d916758 100644 --- a/docs/system/devices/usb.rst +++ b/docs/system/devices/usb.rst

[PATCH v4 1/6] hw/usb: Add CanoKey Implementation

2022-01-27 Thread Hongren (Zenithal) Zheng
APIs, therefore the emulated CanoKey can communicate with the guest OS using USB. Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 298 +++ hw/usb/canokey.h | 69 +++ 2 files changed, 367 insertions(+) create mode 100644 h

[PATCH v4 2/6] hw/usb/canokey: Add trace events

2022-01-27 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c| 13 + hw/usb/trace-events | 16 2 files changed, 29 insertions(+) diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index 3c2efa43fc..1753a30be9 100644 --- a/hw/usb/canokey.c +++ b/hw/usb/canokey.c

[PATCH v4 0/6] Introduce CanoKey QEMU

2022-01-27 Thread Hongren (Zenithal) Zheng
e docs/canokey.txt to docs/system/devices/canokey.rst v3 -> v4: * Refactor canokey.c into single thread version. This version is much easier to understand and review * Add more comments * Add links to canokey.rst in usb.rst * Update MAINTAINERS canokey docs file Hongren (Zenithal)

Re: [PATCH v3 5/6] docs/system/devices/usb: Add CanoKey to USB devices examples

2022-01-19 Thread Hongren (Zenithal) Zheng
On Tue, Jan 18, 2022 at 10:28:49AM +0100, Thomas Huth wrote: > On 13/01/2022 19.11, Hongren (Zenithal) Zheng wrote: > > Signed-off-by: Hongren (Zenithal) Zheng > > --- > > docs/system/devices/usb.rst | 3 +++ > > 1 file changed, 3 insertions(+) > > > > d

Re: [PATCH v3 6/6] MAINTAINERS: add myself as CanoKey maintainer

2022-01-14 Thread Hongren (Zenithal) Zheng
On Fri, Jan 14, 2022 at 02:12:12AM +0800, Hongren (Zenithal) Zheng wrote: > +F: docs/canokey.txt I forgot to change this line, I will change it in the next version along with other requested changes.

[PATCH v3 5/6] docs/system/devices/usb: Add CanoKey to USB devices examples

2022-01-13 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/usb.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index afb7d6c226..341694403a 100644 --- a/docs/system/devices/usb.rst +++ b/docs/system/devices/usb.rst

[PATCH v3 0/6] Introduce CanoKey QEMU

2022-01-13 Thread Hongren (Zenithal) Zheng
e docs/canokey.txt to docs/system/devices/canokey.rst Hongren (Zenithal) Zheng (6): hw/usb: Add CanoKey Implementation hw/usb/canokey: Add trace events meson: Add CanoKey docs: Add CanoKey documentation docs/system/devices/usb: Add CanoKey to USB devices examples MAINTAINERS:

[PATCH v3 4/6] docs: Add CanoKey documentation

2022-01-13 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/device-emulation.rst | 1 + docs/system/devices/canokey.rst | 158 +++ 2 files changed, 159 insertions(+) create mode 100644 docs/system/devices/canokey.rst diff --git a/docs/system/device-emulation.rst b

[PATCH v3 3/6] meson: Add CanoKey

2022-01-13 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/Kconfig| 5 + hw/usb/meson.build| 3 +++ meson.build | 6 ++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 5 files changed, 19 insertions(+) diff --git a/hw

[PATCH v3 6/6] MAINTAINERS: add myself as CanoKey maintainer

2022-01-13 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f871d759fd..51dae611fa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2296,6 +2296,14 @@ F: hw/timer/mips_gictimer.c F: include/hw/intc/mips_gic.h

[PATCH v3 2/6] hw/usb/canokey: Add trace events

2022-01-13 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c| 18 ++ hw/usb/trace-events | 17 + 2 files changed, 35 insertions(+) diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index 6bd4dedfd2..2899515b6e 100644 --- a/hw/usb/canokey.c +++ b/hw/usb

[PATCH v3 1/6] hw/usb: Add CanoKey Implementation

2022-01-13 Thread Hongren (Zenithal) Zheng
APIs, therefore the emulated CanoKey can communicate with the guest OS using USB. Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 326 +++ hw/usb/canokey.h | 60 + 2 files changed, 386 insertions(+) create mode 100644 h

[PATCH v2 2/6] hw/usb/canokey: Add trace events

2022-01-07 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c| 17 + hw/usb/trace-events | 17 + 2 files changed, 34 insertions(+) diff --git a/hw/usb/canokey.c b/hw/usb/canokey.c index 6bd4dedfd2..c8cc31ba9e 100644 --- a/hw/usb/canokey.c +++ b/hw/usb

[PATCH v2 3/6] meson: Add CanoKey

2022-01-07 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/Kconfig| 5 + hw/usb/meson.build| 3 +++ meson.build | 6 ++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 5 files changed, 19 insertions(+) diff --git a/hw

[PATCH v2 0/6] Introduce CanoKey QEMU

2022-01-07 Thread Hongren (Zenithal) Zheng
the host to the guest. --- v1 -> v2: * Use trace events instead of printf to log canokey.c function call * Update debug instructions (trace, pcap) in CanoKey doc * Drop commit about legacy -usbdevice usage Hongren (Zenithal) Zheng (6): hw/usb: Add CanoKey Implementation hw/usb/

[PATCH v2 1/6] hw/usb: Add CanoKey Implementation

2022-01-07 Thread Hongren (Zenithal) Zheng
APIs, therefore the emulated CanoKey can communicate with the guest OS using USB. Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 326 +++ hw/usb/canokey.h | 60 + 2 files changed, 386 insertions(+) create mode 100644 h

[PATCH v2 6/6] MAINTAINERS: add myself as CanoKey maintainer

2022-01-07 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f871d759fd..51dae611fa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2296,6 +2296,14 @@ F: hw/timer/mips_gictimer.c F: include/hw/intc/mips_gic.h

[PATCH v2 5/6] docs/system/devices/usb: Add CanoKey to USB devices examples

2022-01-07 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/usb.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index afb7d6c226..341694403a 100644 --- a/docs/system/devices/usb.rst +++ b/docs/system/devices/usb.rst

[PATCH v2 4/6] docs: Add CanoKey documentation

2022-01-07 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/canokey.txt | 140 +++ 1 file changed, 140 insertions(+) create mode 100644 docs/canokey.txt diff --git a/docs/canokey.txt b/docs/canokey.txt new file mode 100644 index 00..6d6ba19740 --- /dev

[PATCH 6/6] MAINTAINERS: add myself as CanoKey maintainer

2021-12-23 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5456536805..522b0e5687 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2295,6 +2295,14 @@ F: hw/timer/mips_gictimer.c F: include/hw/intc/mips_gic.h

[PATCH 5/6] docs/qdev-device-use: Add CanoKey to QDEV devices examples

2021-12-23 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/qdev-device-use.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/qdev-device-use.txt b/docs/qdev-device-use.txt index 2408889334..278fb66c0a 100644 --- a/docs/qdev-device-use.txt +++ b/docs/qdev-device-use.txt @@ -342,6 +342,7 @@ The

[PATCH 0/6] Introduce CanoKey QEMU

2021-12-23 Thread Hongren (Zenithal) Zheng
the host to the guest. Hongren (Zenithal) Zheng (6): hw/usb: Add CanoKey Implementation meson: Add CanoKey docs: Add CanoKey documentation docs/system/devices/usb: Add CanoKey to USB devices examples docs/qdev-device-use: Add CanoKey to QDEV devices examples MAINTAINERS: add my

[PATCH 3/6] docs: Add CanoKey documentation

2021-12-23 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/canokey.txt | 133 +++ 1 file changed, 133 insertions(+) create mode 100644 docs/canokey.txt diff --git a/docs/canokey.txt b/docs/canokey.txt new file mode 100644 index 00..69262194c4 --- /dev

[PATCH 4/6] docs/system/devices/usb: Add CanoKey to USB devices examples

2021-12-23 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- docs/system/devices/usb.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/system/devices/usb.rst b/docs/system/devices/usb.rst index afb7d6c226..341694403a 100644 --- a/docs/system/devices/usb.rst +++ b/docs/system/devices/usb.rst

[PATCH 2/6] meson: Add CanoKey

2021-12-23 Thread Hongren (Zenithal) Zheng
Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/Kconfig| 5 + hw/usb/meson.build| 3 +++ meson.build | 6 ++ meson_options.txt | 2 ++ scripts/meson-buildoptions.sh | 3 +++ 5 files changed, 19 insertions(+) diff --git a/hw

[PATCH 1/6] hw/usb: Add CanoKey Implementation

2021-12-23 Thread Hongren (Zenithal) Zheng
APIs, therefore the emulated CanoKey can communicate with the guest OS using USB. Signed-off-by: Hongren (Zenithal) Zheng --- hw/usb/canokey.c | 378 +++ hw/usb/canokey.h | 60 2 files changed, 438 insertions(+) create mode 100644 hw/usb/cano