RE: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device

2023-09-08 Thread Ho, Tong
@nongnu.org; alist...@alistair23.me; edgar.igles...@gmail.com Subject: Re: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device On Fri, 8 Sept 2023 at 18:56, Ho, Tong wrote: > > Hi Peter, > > The Versal TRNG device is required to support both TRNG mode and PRNG > mode, a

Re: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device

2023-09-08 Thread Peter Maydell
On Fri, 8 Sept 2023 at 18:56, Ho, Tong wrote: > > Hi Peter, > > The Versal TRNG device is required to support both TRNG mode and PRNG mode, > and target/guest > software selects and changes the mode at will during runtime. > > I do agree that, in the TRNG mode, the model using qemu_guest_getrando

RE: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device

2023-09-08 Thread Ho, Tong
- From: Peter Maydell Sent: Friday, September 8, 2023 6:50 AM To: Ho, Tong Cc: Richard Henderson ; qemu-...@nongnu.org; qemu-devel@nongnu.org; alist...@alistair23.me; edgar.igles...@gmail.com Subject: Re: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device On Fri, 1 Sept 2023 at 05:16

Re: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device

2023-09-08 Thread Peter Maydell
On Fri, 1 Sept 2023 at 05:16, Ho, Tong wrote: > > Hi Richard, > > Thanks for your input. > > I have questions regarding using qemu/guest-random.h for QEMU device models. > > Using qemu/guest-random.h, how can this TRNG model ensure its independence > from > other uses of the same qemu_guest_getra

RE: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device

2023-08-31 Thread Ho, Tong
hursday, August 31, 2023 4:45 PM To: Ho, Tong ; qemu-...@nongnu.org Cc: qemu-devel@nongnu.org; alist...@alistair23.me; edgar.igles...@gmail.com; peter.mayd...@linaro.org Subject: Re: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device On 8/31/23 10:18, Tong Ho wrote: > This adds a non

Re: [PATCH 1/3] hw/misc: Introduce AMD/Xilix Versal TRNG device

2023-08-31 Thread Richard Henderson
On 8/31/23 10:18, Tong Ho wrote: This adds a non-cryptographic grade implementation of the model for the True Random Number Generator (TRNG) component in AMD/Xilinx Versal device family. This model is only intended for non-real world testing of guest software, where cryptographically strong TRNG