Skip to content

Commit

Permalink
hw/usb: Add U2F key passthru mode
Browse files Browse the repository at this point in the history
This patch adds the U2F key pass-through mode.

The pass-through mode consists of passing all requests made from the
guest to the physical security key connected to the host machine and
vice versa.

In addition, the dedicated pass-through allows to have a U2F security key
shared on several guests which is not possible with a simple host device
assignment pass-through.

The pass-through mode is associated with a device inheriting from
u2f-key base.

To work, it needs the path to a U2F hidraw, obtained from the Qemu
command line, and passed by the user:

    qemu -usb -device u2f-passthru,hidraw=/dev/hidrawX

Autoscan and U2F compatibility checking features are given at the end
of the patch series.

Signed-off-by: César Belley <cesar.belley@lse.epita.fr>
Message-id: 20200826114209.28821-6-cesar.belley@lse.epita.fr
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
  • Loading branch information
Agnoctopus authored and kraxel committed Aug 31, 2020
1 parent bb014a8 commit 299976b
Showing 1 changed file with 423 additions and 0 deletions.

0 comments on commit 299976b

Please sign in to comment.