hw/usb: Add U2F key base class implementation
authorCésar Belley <cesar.belley@lse.epita.fr>
Wed, 26 Aug 2020 11:42:01 +0000 (13:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 31 Aug 2020 06:10:47 +0000 (08:10 +0200)
commitbb014a810b565dfe14ad3e85175b9ec299105058
tree71fb1c7db5ee29a7217087c81e8a72dcca01b666
parent80e267f1d17c7fe0f08a0f666e9d7e68a3ccf4d8
hw/usb: Add U2F key base class implementation

This patch adds the U2F key base class implementation.

The U2F key base mainly takes care of the HID interfacing with guest.
On the one hand, it retrieves the guest U2FHID packets and transmits
them to the variant associated according to the mode: pass-through
or emulated.
On the other hand, it provides the public API used by its variants to
send U2FHID packets to the guest.

Signed-off-by: César Belley <cesar.belley@lse.epita.fr>
Message-id: 20200826114209.28821-5-cesar.belley@lse.epita.fr
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/u2f.c [new file with mode: 0644]