Re: [Qemu-devel] [PATCH v2 1/3] compiler: define QEMU_CACHELINE_SIZE

2017-06-06 Thread Geert Martin Ijewski
Am 06.06.2017 um 23:38 schrieb Emilio G. Cota: > On Tue, Jun 06, 2017 at 22:28:23 +0200, Geert Martin Ijewski wrote: >> On a fully patched Windows 10 with an i5-4690 this code works for me (TM): > > Thanks! > Can you please test this? > >Emilio > -

Re: [Qemu-devel] [PATCH v2 1/3] compiler: define QEMU_CACHELINE_SIZE

2017-06-06 Thread Geert Martin Ijewski
Am 06.06.2017 um 19:39 schrieb Richard Henderson: On 06/06/2017 09:11 AM, Emilio G. Cota wrote: On Tue, Jun 06, 2017 at 01:39:45 -0400, Pranith Kumar wrote: On Mon, Jun 5, 2017 at 6:49 PM, Emilio G. Cota wrote: This is a constant used as a hint for padding structs to hopefully avoid false ca

Re: [Qemu-devel] Changes to Broadcom(BCM) files and Raspberry Pi files. Addition of PanelEmu

2017-05-16 Thread Geert Martin Ijewski
Am 14.05.2017 um 02:42 schrieb John Bradley via Qemu-devel: From 7f74f048f135d9c9c230a9e90f72451c841c6d35 Mon Sep 17 00:00:00 2001 From: John Bradley Date: Sat, 13 May 2017 23:07:47 +0100 Subject: [PATCH] Changes to Broadcom(BCM) files and Raspberry Pi files. Addition of PanelEmu The files add

Re: [Qemu-devel] [Qemu-arm] Changes to Broadcom(BCM) files and Raspberry Pi files. Addition of PanelEmu

2017-05-16 Thread Geert Martin Ijewski
Am 16.05.2017 um 02:01 schrieb John Bradley via Qemu-devel: Hi, The XML files in the base are not in the patch. They where net beans files. I can easily get it into 3 files, one large at 91KB but contains only new files and so is easy to read. Could be smaller but seems pointless. I think wha

[Qemu-devel] [PATCH v5] crypto: qcrypto_random_bytes() now works on windows w/o any other crypto libs

2017-04-25 Thread Geert Martin Ijewski
qcrypto_random_bytes(). Either: * a handle to /dev/urandom | /dev/random on unix like systems * a handle to a cryptographic service provider on windows Signed-off-by: Geert Martin Ijewski --- crypto/init.c| 6 ++ crypto/random-gcrypt.c | 2 ++ crypto/random-gnutls.c | 3 +++ crypto

[Qemu-devel] [PATCH v4] crypto: qcrypto_random_bytes() now works on windows w/o any other crypto libs

2017-04-25 Thread Geert Martin Ijewski
qcrypto_random_bytes(). Either: * a handle to /dev/urandom | /dev/random on unix like systems * a handle to a cryptographic service provider on windows Signed-off-by: Geert Martin Ijewski --- crypto/init.c| 6 ++ crypto/random-gcrypt.c | 2 ++ crypto/random-gnutls.c | 3 +++ crypto

[Qemu-devel] [PATCH v3] crypto: qcrypto_random_bytes() now works on windows w/o any other crypto lib

2017-04-25 Thread Geert Martin Ijewski
qcrypto_random_bytes(). Either: * a handle to /dev/urandom | /dev/random on unix like systems * a handle to a cryptographic service provider on windows Signed-off-by: Geert Martin Ijewski --- crypto/init.c| 6 ++ crypto/random-gcrypt.c | 2 ++ crypto/random-gnutls.c | 3

Re: [Qemu-devel] [PATCH v2] crypto_gen_random() now also works on windows

2017-04-25 Thread Geert Martin Ijewski
Am 25.04.2017 um 15:42 schrieb Daniel P. Berrange: On Mon, Apr 24, 2017 at 07:51:49PM +0200, Geert Martin Ijewski wrote: +#ifdef _WIN32 +#include +HCRYPTPROV hCryptProv; +#else +int fd; /* a file handle to either /dev/urandom or /dev/random */ +#endif Lets mark both these vars 'static&

[Qemu-devel] [PATCH v2] crypto_gen_random() now also works on windows

2017-04-24 Thread Geert Martin Ijewski
CryptGenRandom(). Furthermore there was some refactoring and a new function qcrypto_random_init() was introduced, that initalizes (platform specific) handles that are used by qcrypto_random_bytes(). Signed-off-by: Geert Martin Ijewski --- crypto/init.c| 6 ++ crypto/random

Re: [Qemu-devel] error: qcrypto_random_bytes() tried to read from /dev/[u]random, even on windows

2017-04-24 Thread Geert Martin Ijewski
> We can have the existing qcrypto_init() call a qcrypto_random_init() > method to do the one-time initialization task, since that's already > required to run early in order to initialize gnutls when we use it. Wouldn't it make sense to also move the unix initalization to that function? And what