Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge tag 'pull-target-arm-20230518' of https://git.linaro.org/people…
…/pmaydell/qemu-arm into staging target-arm queue: * Fix vd == vm overlap in sve_ldff1_z * Add support for MTE with KVM guests * Add RAZ/WI handling for DBGDTR[TX|RX] * Start of conversion of A64 decoder to decodetree * Saturate L2CTLR_EL1 core count field rather than overflowing * vexpress: Avoid trivial memory leak of 'flashalias' * sbsa-ref: switch default cpu core to Neoverse-N1 * sbsa-ref: use Bochs graphics card instead of VGA * MAINTAINERS: Add Marcin Juszkiewicz to sbsa-ref reviewer list * docs: Convert u2f.txt to rST # -----BEGIN PGP SIGNATURE----- # # iQJNBAABCAA3FiEE4aXFk81BneKOgxXPPCUl7RQ2DN4FAmRmHvMZHHBldGVyLm1h # eWRlbGxAbGluYXJvLm9yZwAKCRA8JSXtFDYM3vqqEACFEcWq3E2gRjwnz8JAEk/0 # jYuYg9jUG6Ev6xY5x31+M4DfK78eXgHYtCxhEcT6FSwpFg/ZXC+bPlZcRlM+8692 # gkp+JJeBA4VRy9e7Uk6GvRWnpGzjnkHTHf4E9PZB8iIvbJY9nFTtMZydn1w0EnMW # HsetnNLIxrtJaETwUa5mDWh0Bt4t6ZIEB2bJSr3O0fy7uiJ8xvpRMYxqfxvI0h+0 # 7xSaG7xb5Dy4LxohMK0CLdj1wy+8uWpYgD6ZneJ2hlqjknvNWa3zdR8bRLNT0aZL # 8ubR1ioFvfi+uA26SNVrdRrGEhqMrTxD0XstFutz0zlOjn0wjo1Ny/ojmGYWuvcU # aG09UvcecMP8hy+ygTXJ+2D04eH1VGmS1GEwRS3p+fdODsgHy0Ctln8IPK8SuG7q # 67BG/F4GNdkbktHGbZlwduxh30furH8pSSlIJOeTq7d20+atqZ94MWaoW1iQ+t4B # 9gDi3MsKoUKVNEhJPorHlDxvtlQppr0ziL0IVPeYUNJONlSza88hkx34ScA5Rl7+ # 5vQYjLkhS1qZQqvd1fNSRNtHeGx2uBeE9eZF/ZCp7bA5rxcRn//LmG7hO7Octuii # zIVaOektXeShALdJ7dMt4MZh0z1RjVVLf0ouC1HHCg9rlzvB+0I5AhXYacGkmCqW # wf9S0hvNqdGmJRQhNRonGg== # =ooCi # -----END PGP SIGNATURE----- # gpg: Signature made Thu 18 May 2023 05:49:55 AM PDT # gpg: using RSA key E1A5C593CD419DE28E8315CF3C2525ED14360CDE # gpg: issuer "peter.maydell@linaro.org" # gpg: Good signature from "Peter Maydell <peter.maydell@linaro.org>" [full] # gpg: aka "Peter Maydell <pmaydell@gmail.com>" [full] # gpg: aka "Peter Maydell <pmaydell@chiark.greenend.org.uk>" [full] * tag 'pull-target-arm-20230518' of https://git.linaro.org/people/pmaydell/qemu-arm: (29 commits) docs: Convert u2f.txt to rST hw/arm/vexpress: Avoid trivial memory leak of 'flashalias' target/arm: Saturate L2CTLR_EL1 core count field rather than overflowing target/arm: Convert ERET, ERETAA, ERETAB to decodetree target/arm: Convert BRAA, BRAB, BLRAA, BLRAB to decodetree target/arm: Convert BRA[AB]Z, BLR[AB]Z, RETA[AB] to decodetree target/arm: Convert BR, BLR, RET to decodetree target/arm: Convert conditional branch insns to decodetree target/arm: Convert TBZ, TBNZ to decodetree target/arm: Convert CBZ, CBNZ to decodetree target/arm: Convert unconditional branch immediate to decodetree target/arm: Convert Extract instructions to decodetree target/arm: Convert Bitfield to decodetree target/arm: Convert Move wide (immediate) to decodetree target/arm: Convert Logical (immediate) to decodetree target/arm: Replace bitmask64 with MAKE_64BIT_MASK target/arm: Convert Add/subtract (immediate with tags) to decodetree target/arm: Convert Add/subtract (immediate) to decodetree target/arm: Split gen_add_CC and gen_sub_CC target/arm: Convert PC-rel addressing to decodetree ... Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
- Loading branch information
Showing
20 changed files
with
973 additions
and
918 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| Universal Second Factor (U2F) USB Key Device | ||
| ============================================ | ||
|
|
||
| U2F is an open authentication standard that enables relying parties | ||
| exposed to the internet to offer a strong second factor option for end | ||
| user authentication. | ||
|
|
||
| The second factor is provided by a device implementing the U2F | ||
| protocol. In case of a USB U2F security key, it is a USB HID device | ||
| that implements the U2F protocol. | ||
|
|
||
| QEMU supports both pass-through of a host U2F key device to a VM, | ||
| and software emulation of a U2F key. | ||
|
|
||
| ``u2f-passthru`` | ||
| ---------------- | ||
|
|
||
| The ``u2f-passthru`` device allows you to connect a real hardware | ||
| U2F key on your host to a guest VM. All requests made from the guest | ||
| are passed through to the physical security key connected to the | ||
| host machine and vice versa. | ||
|
|
||
| In addition, the dedicated pass-through allows you to share a single | ||
| U2F security key with several guest VMs, which is not possible with a | ||
| simple host device assignment pass-through. | ||
|
|
||
| You can specify the host U2F key to use with the ``hidraw`` | ||
| option, which takes the host path to a Linux ``/dev/hidrawN`` device: | ||
|
|
||
| .. parsed-literal:: | ||
| |qemu_system| -usb -device u2f-passthru,hidraw=/dev/hidraw0 | ||
| If you don't specify the device, the ``u2f-passthru`` device will | ||
| autoscan to take the first U2F device it finds on the host (this | ||
| requires a working libudev): | ||
|
|
||
| .. parsed-literal:: | ||
| |qemu_system| -usb -device u2f-passthru | ||
| ``u2f-emulated`` | ||
| ---------------- | ||
|
|
||
| ``u2f-emulated`` is a completely software emulated U2F device. | ||
| It uses `libu2f-emu <https://github.com/MattGorko/libu2f-emu>`__ | ||
| for the U2F key emulation. libu2f-emu | ||
| provides a complete implementation of the U2F protocol device part for | ||
| all specified transports given by the FIDO Alliance. | ||
|
|
||
| To work, an emulated U2F device must have four elements: | ||
|
|
||
| * ec x509 certificate | ||
| * ec private key | ||
| * counter (four bytes value) | ||
| * 48 bytes of entropy (random bits) | ||
|
|
||
| To use this type of device, these have to be configured, and these | ||
| four elements must be passed one way or another. | ||
|
|
||
| Assuming that you have a working libu2f-emu installed on the host, | ||
| there are three possible ways to configure the ``u2f-emulated`` device: | ||
|
|
||
| * ephemeral | ||
| * setup directory | ||
| * manual | ||
|
|
||
| Ephemeral is the simplest way to configure; it lets the device generate | ||
| all the elements it needs for a single use of the lifetime of the device. | ||
| It is the default if you do not pass any other options to the device. | ||
|
|
||
| .. parsed-literal:: | ||
| |qemu_system| -usb -device u2f-emulated | ||
| You can pass the device the path of a setup directory on the host | ||
| using the ``dir`` option; the directory must contain these four files: | ||
|
|
||
| * ``certificate.pem``: ec x509 certificate | ||
| * ``private-key.pem``: ec private key | ||
| * ``counter``: counter value | ||
| * ``entropy``: 48 bytes of entropy | ||
|
|
||
| .. parsed-literal:: | ||
| |qemu_system| -usb -device u2f-emulated,dir=$dir | ||
| You can also manually pass the device the paths to each of these files, | ||
| if you don't want them all to be in the same directory, using the options | ||
|
|
||
| * ``cert`` | ||
| * ``priv`` | ||
| * ``counter`` | ||
| * ``entropy`` | ||
|
|
||
| .. parsed-literal:: | ||
| |qemu_system| -usb -device u2f-emulated,cert=$DIR1/$FILE1,priv=$DIR2/$FILE2,counter=$DIR3/$FILE3,entropy=$DIR4/$FILE4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.