: César Belley
---
docs/u2f.txt | 9
hw/usb/Makefile.objs | 1 +
hw/usb/u2f-passthru.c | 113 +-
3 files changed, 110 insertions(+), 13 deletions(-)
diff --git a/docs/u2f.txt b/docs/u2f.txt
index f60052882e..8f44994818 100644
--- a/docs/u2f.txt
have a
U2F security key shared on several guests which is not possible with
a simple host device assignment pass-through.
The emulated mode consists of completely emulating the behavior of an
U2F device through software part. Libu2f-emu is used for that.
Regards,
César Belley
César Belley (13):
hw/us
Add USB U2F key device documentation:
- USB U2F key device
- Building
- Using u2f-emulated
- Using u2f-passthru
- Libu2f-emu
Signed-off-by: César Belley
---
docs/u2f.txt | 101 +++
1 file changed, 101 insertions(+)
create mode 100644 docs/u2f.txt
u2f-key -> {u2f-passthru, u2f-emulated}.
Signed-off-by: César Belley
---
hw/usb/u2f.h | 92
1 file changed, 92 insertions(+)
create mode 100644 hw/usb/u2f.h
diff --git a/hw/usb/u2f.h b/hw/usb/u2f.h
new file mode 100644
index 00..db30
,hidraw=/dev/hidrawX
Autoscan and U2F compatibility checking features are given at the end
of the patch series.
Signed-off-by: César Belley
---
hw/usb/u2f-passthru.c | 423 ++
1 file changed, 423 insertions(+)
create mode 100644 hw/usb/u2f-passthru.c
diff
Group some HID values that are used pretty much everywhere when
dealing with HID devices.
Signed-off-by: César Belley
---
hw/usb/dev-hid.c | 26 +++---
hw/usb/dev-wacom.c | 12 +++-
include/hw/usb/hid.h | 17 +
3 files changed, 27 insertions
Signed-off-by: César Belley
---
configure | 27 +++
1 file changed, 27 insertions(+)
diff --git a/configure b/configure
index 2acc4d1465..3ea5e561ff 100755
--- a/configure
+++ b/configure
@@ -447,6 +447,7 @@ trace_file="trace"
spice=""
rbd=&
provides the public API used by its variants to
send U2FHID packets to the guest.
Signed-off-by: César Belley
---
hw/usb/u2f.c | 352 +++
1 file changed, 352 insertions(+)
create mode 100644 hw/usb/u2f.c
diff --git a/hw/usb/u2f.c b/hw/usb/u2f.c
Signed-off-by: César Belley
---
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 f8d0d2fe29..9889521e3c 100644
--- a/docs/qdev-device-use.txt
+++ b/docs/qdev-device-use.txt
@@ -325,6 +325,7 @@ The new way is
information about libu2f-emu see this page:
https://github.com/MattGorko/libu2f-emu.
Signed-off-by: César Belley
---
hw/usb/u2f-emulated.c | 405 ++
1 file changed, 405 insertions(+)
create mode 100644 hw/usb/u2f-emulated.c
diff --git a/hw/usb/u2f-emulated.c b/hw
Signed-off-by: César Belley
---
hw/usb/Kconfig | 5 +
hw/usb/Makefile.objs | 7 +++
2 files changed, 12 insertions(+)
diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig
index 5e63dc75f8..3fc8fbe3c7 100644
--- a/hw/usb/Kconfig
+++ b/hw/usb/Kconfig
@@ -96,6 +96,11 @@ config
Signed-off-by: César Belley
---
docs/system/usb.rst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/system/usb.rst b/docs/system/usb.rst
index ddfa828d74..9a2f1927c4 100644
--- a/docs/system/usb.rst
+++ b/docs/system/usb.rst
@@ -81,6 +81,9 @@ option or the ``device_add`` monitor
This patch adds the script used to generate setup directories, needed
for the device u2f-emulated configuration in directory mode:
python u2f-setup-gen.py $DIR
qemu -usb -device u2f-emulated,dir=$DIR
Signed-off-by: César Belley
---
scripts/u2f-setup-gen.py | 170
This patchs adds a check to verify that the device passed through the
hidraw property is a U2F device.
The check is done by ensuring that the first values of the report
descriptor (USAGE PAGE and USAGE) correspond to those of a U2F device.
Signed-off-by: César Belley
---
hw/usb/Makefile.objs
Acked-by: César Belley
On 10/4/20 10:40 PM, Philippe Mathieu-Daudé wrote:
> There is a number of contributions from these academic domains.
> Add the entries to the gitdm 'academic' domain map.
>
> Cc: Akkarit Sangpetch
> Cc: Alexander Bulekov
> Cc: Alexander Olein
information about libu2f-emu see this page:
https://github.com/MattGorko/libu2f-emu.
Signed-off-by: César Belley
---
hw/usb/u2f-emulated.c | 405 ++
1 file changed, 405 insertions(+)
create mode 100644 hw/usb/u2f-emulated.c
diff --git a/hw/usb/u2f-emulated.c b/hw
F security key shared on several guests which is not possible with
a simple host device assignment pass-through.
The emulated mode consists of completely emulating the behavior of an
U2F device through software part. Libu2f-emu is used for that.
Regards,
César Belley
History:
v1 -> v2:
-
Add USB U2F key device documentation:
- USB U2F key device
- Building
- Using u2f-emulated
- Using u2f-passthru
- Libu2f-emu
Signed-off-by: César Belley
---
docs/u2f.txt | 101 +++
1 file changed, 101 insertions(+)
create mode 100644 docs/u2f.txt
u2f-key -> {u2f-passthru, u2f-emulated}.
Signed-off-by: César Belley
---
hw/usb/u2f.h | 92
1 file changed, 92 insertions(+)
create mode 100644 hw/usb/u2f.h
diff --git a/hw/usb/u2f.h b/hw/usb/u2f.h
new file mode 100644
index 00..db30
Group some HID values that are used pretty much everywhere when
dealing with HID devices.
Signed-off-by: César Belley
---
hw/usb/dev-hid.c | 26 +++---
hw/usb/dev-wacom.c | 12 +++-
include/hw/usb/hid.h | 17 +
3 files changed, 27 insertions
Signed-off-by: César Belley
---
hw/usb/Kconfig | 5 +
hw/usb/meson.build | 5 +
meson.build| 6 ++
3 files changed, 16 insertions(+)
diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig
index 5e63dc75f8..3fc8fbe3c7 100644
--- a/hw/usb/Kconfig
+++ b/hw/usb/Kconfig
@@ -96,6 +96,11
Signed-off-by: César Belley
---
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 f8d0d2fe29..9889521e3c 100644
--- a/docs/qdev-device-use.txt
+++ b/docs/qdev-device-use.txt
@@ -325,6 +325,7 @@ The new way is
provides the public API used by its variants to
send U2FHID packets to the guest.
Signed-off-by: César Belley
---
hw/usb/u2f.c | 352 +++
1 file changed, 352 insertions(+)
create mode 100644 hw/usb/u2f.c
diff --git a/hw/usb/u2f.c b/hw/usb/u2f.c
new
Signed-off-by: César Belley
---
configure | 26 ++
1 file changed, 26 insertions(+)
diff --git a/configure b/configure
index 67832e3bab..75d38e5411 100755
--- a/configure
+++ b/configure
@@ -495,6 +495,7 @@ trace_file="trace"
spice=""
rbd=&
Signed-off-by: César Belley
---
docs/system/usb.rst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/system/usb.rst b/docs/system/usb.rst
index ddfa828d74..9a2f1927c4 100644
--- a/docs/system/usb.rst
+++ b/docs/system/usb.rst
@@ -81,6 +81,9 @@ option or the ``device_add`` monitor
This patch adds the script used to generate setup directories, needed
for the device u2f-emulated configuration in directory mode:
python u2f-setup-gen.py $DIR
qemu -usb -device u2f-emulated,dir=$DIR
Signed-off-by: César Belley
---
scripts/u2f-setup-gen.py | 170
,hidraw=/dev/hidrawX
Autoscan and U2F compatibility checking features are given at the end
of the patch series.
Signed-off-by: César Belley
---
hw/usb/u2f-passthru.c | 423 ++
1 file changed, 423 insertions(+)
create mode 100644 hw/usb/u2f-passthru.c
diff
This patchs adds a check to verify that the device passed through the
hidraw property is a U2F device.
The check is done by ensuring that the first values of the report
descriptor (USAGE PAGE and USAGE) correspond to those of a U2F device.
Signed-off-by: César Belley
---
hw/usb/u2f-passthru.c
Signed-off-by: César Belley
---
docs/u2f.txt | 9
hw/usb/meson.build| 2 +-
hw/usb/u2f-passthru.c | 113 +-
3 files changed, 110 insertions(+), 14 deletions(-)
diff --git a/docs/u2f.txt b/docs/u2f.txt
index f60052882e..8f44994818
This patchs adds a check to verify that the device passed through the
hidraw property is a U2F device.
The check is done by ensuring that the first values of the report
descriptor (USAGE PAGE and USAGE) correspond to those of a U2F device.
Signed-off-by: César Belley
---
hw/usb/u2f-passthru.c
Group some HID values that are used pretty much everywhere when
dealing with HID devices.
Signed-off-by: César Belley
---
hw/usb/dev-hid.c | 26 +++---
hw/usb/dev-wacom.c | 12 +++-
include/hw/usb/hid.h | 17 +
3 files changed, 27 insertions
u2f-key -> {u2f-passthru, u2f-emulated}.
Signed-off-by: César Belley
---
hw/usb/u2f.h | 92
1 file changed, 92 insertions(+)
create mode 100644 hw/usb/u2f.h
diff --git a/hw/usb/u2f.h b/hw/usb/u2f.h
new file mode 100644
index 00..db30
F security key shared on several guests which is not possible with
a simple host device assignment pass-through.
The emulated mode consists of completely emulating the behavior of an
U2F device through software part. Libu2f-emu is used for that.
Regards,
César Belley
History:
v1 -> v2:
-
Add USB U2F key device documentation:
- USB U2F key device
- Building
- Using u2f-emulated
- Using u2f-passthru
- Libu2f-emu
Signed-off-by: César Belley
---
docs/u2f.txt | 101 +++
1 file changed, 101 insertions(+)
create mode 100644 docs/u2f.txt
provides the public API used by its variants to
send U2FHID packets to the guest.
Signed-off-by: César Belley
---
hw/usb/u2f.c | 352 +++
1 file changed, 352 insertions(+)
create mode 100644 hw/usb/u2f.c
diff --git a/hw/usb/u2f.c b/hw/usb/u2f.c
new
Signed-off-by: César Belley
---
docs/system/usb.rst | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/system/usb.rst b/docs/system/usb.rst
index ddfa828d74..9a2f1927c4 100644
--- a/docs/system/usb.rst
+++ b/docs/system/usb.rst
@@ -81,6 +81,9 @@ option or the ``device_add`` monitor
,hidraw=/dev/hidrawX
Autoscan and U2F compatibility checking features are given at the end
of the patch series.
Signed-off-by: César Belley
---
hw/usb/u2f-passthru.c | 423 ++
1 file changed, 423 insertions(+)
create mode 100644 hw/usb/u2f-passthru.c
diff
This patch adds the script used to generate setup directories, needed
for the device u2f-emulated configuration in directory mode:
python u2f-setup-gen.py $DIR
qemu -usb -device u2f-emulated,dir=$DIR
Signed-off-by: César Belley
---
scripts/u2f-setup-gen.py | 170
Signed-off-by: César Belley
---
configure | 8 +++-
hw/usb/Kconfig | 5 +
hw/usb/meson.build | 7 +++
meson.build| 7 +++
meson_options.txt | 1 +
5 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index b1e11397a8
information about libu2f-emu see this page:
https://github.com/MattGorko/libu2f-emu.
Signed-off-by: César Belley
---
hw/usb/u2f-emulated.c | 405 ++
1 file changed, 405 insertions(+)
create mode 100644 hw/usb/u2f-emulated.c
diff --git a/hw/usb/u2f-emulated.c b/hw
Signed-off-by: César Belley
---
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 f8d0d2fe29..9889521e3c 100644
--- a/docs/qdev-device-use.txt
+++ b/docs/qdev-device-use.txt
@@ -325,6 +325,7 @@ The new way is
This patch adds an autoscan to let u2f-passthru choose the first U2F
device it finds.
The autoscan is performed using libudev with an enumeration of all the
hidraw devices present on the host.
The first device which happens to be a U2F device is taken to do the
passtru.
Signed-off-by: César
42 matches
Mail list logo