[Qemu-devel] [PATCH v2 04/13] vvfat: rename useless enumeration values

2017-05-22 Thread Hervé Poussineau
MODE_FAKED and MODE_RENAMED are not and were never used. Signed-off-by: Hervé Poussineau --- block/vvfat.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 8b5f53ad26..6a36d4f7fa 100644 --- a/block/vvfat.c +++ b/block/vvfat.c

[Qemu-devel] [PATCH v2 10/13] vvfat: correctly generate numeric-tail of short file names

2017-05-22 Thread Hervé Poussineau
for non-ASCII filenames. Specification: "FAT: General overview of on-disk format" v1.03, page 31 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 62 --- 1 file changed, 29 insertions(+), 33 deletions(-) diff --git a/block/vvfat.

[Qemu-devel] [PATCH v2 05/13] vvfat: introduce offset_to_bootsector, offset_to_fat and offset_to_root_dir

2017-05-22 Thread Hervé Poussineau
first_sectors_number by offset_to_fat. Replace faked_sectors by offset_to_rootdir. Signed-off-by: Hervé Poussineau --- block/vvfat.c | 70 --- 1 file changed, 43 insertions(+), 27 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 6a36d4f7fa

[Qemu-devel] [PATCH v2 06/13] vvfat: fix field names in FAT12/FAT16 and FAT32 boot sectors

2017-05-22 Thread Hervé Poussineau
Specification: "FAT: General overview of on-disk format" v1.03, pages 11-13 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index e694d82df4..c1034cdd1f 100644 -

[Qemu-devel] [PATCH v2 07/13] vvfat: always create . and .. entries at first and in that order

2017-05-22 Thread Hervé Poussineau
page 25 Fixes: https://bugs.launchpad.net/qemu/+bug/1599539 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index c1034cdd1f..d4664c531b 100644 --- a/block/vvfat.c +++ b/block/vv

[Qemu-devel] [PATCH v2 01/13] vvfat: fix qemu-img map and qemu-img convert

2017-05-22 Thread Hervé Poussineau
img convert. Fixes: 4480e0f924a42e1db8b8cfcac4d0634dd1bb27a0 Fixes: https://bugs.launchpad.net/qemu/+bug/1599539 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 9c82371360..df24091bf6 100644

[Qemu-devel] [PATCH v2 11/13] vvfat: limit number of entries in root directory in FAT12/FAT16

2017-05-22 Thread Hervé Poussineau
/1599539/comments/4 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 414bca6dee..5376659010 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -338,8 +338,9 @@ typedef

[Qemu-devel] [PATCH v2 13/13] vvfat: change OEM name to 'MSWIN4.1'

2017-05-22 Thread Hervé Poussineau
quot; Specification: "FAT: General overview of on-disk format" v1.03, page 9 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/vvfat.c b/block/vvfat.c index 53e8faa54c..1f7f46ecea 100644 --- a/block/vvfat.c +++ b/bl

[Qemu-devel] [PATCH v2 08/13] vvfat: correctly create long names for non-ASCII filenames

2017-05-22 Thread Hervé Poussineau
Assume that input filename is encoded as UTF-8, so correctly create UTF-16 encoding. Signed-off-by: Hervé Poussineau --- block/vvfat.c | 38 ++ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index d4664c531b

[Qemu-devel] [PATCH v2 03/13] vvfat: fix typos

2017-05-22 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- block/vvfat.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index d3afb731b6..8b5f53ad26 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -404,9 +404,9 @@ static void init_mbr(BDRVVVFATState *s, int

[Qemu-devel] [PATCH v2 00/13] vvfat: misc fixes for read-only mode

2017-05-22 Thread Hervé Poussineau
eckpatch.pl, as it changes indentation only. Hervé Changes v1->v2: - small changes following Kevin remarks (patches 3, 5, 6) - use g_utf8_* functions instead of ad-hock code (patches 8 and 9) - fix a bug with filenames starting with a dot (patch 9) Hervé Poussineau (13): vvfat: fix qemu-im

[Qemu-devel] [PATCH v2 12/13] vvfat: handle KANJI lead byte 0xe5

2017-05-22 Thread Hervé Poussineau
Specification: "FAT: General overview of on-disk format" v1.03, page 23 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 5376659010..53e8faa54c 100644 --- a/block/vvfat.c +

Re: [Qemu-devel] [PATCH 06/13] vvfat: fix field names in FAT12/FAT16 boot sector

2017-05-16 Thread Hervé Poussineau
Le 16/05/2017 à 16:39, Kevin Wolf a écrit : Am 15.05.2017 um 22:31 hat Hervé Poussineau geschrieben: Specification: "FAT: General overview of on-disk format" v1.03, page 11 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 10 +- 1 file changed, 5 insertions(+), 5 deletion

Re: [Qemu-devel] [PATCH 05/13] vvfat: introduce offset_to_bootsector, offset_to_fat and offset_to_root_dir

2017-05-16 Thread Hervé Poussineau
Le 16/05/2017 à 16:16, Kevin Wolf a écrit : Am 15.05.2017 um 22:31 hat Hervé Poussineau geschrieben: - offset_to_bootsector is the number of sectors up to FAT bootsector - offset_to_fat is the number of sectors up to first File Allocation Table - offset_to_root_dir is the number of sectors up

Re: [Qemu-devel] [PATCH 03/13] vvfat: fix typos

2017-05-16 Thread Hervé Poussineau
Le 16/05/2017 à 15:21, Kevin Wolf a écrit : Am 15.05.2017 um 22:31 hat Hervé Poussineau geschrieben: @@ -806,7 +806,7 @@ static int read_directory(BDRVVVFATState* s, int mapping_index) (ROOT_ENTRIES - cur) * sizeof(direntry_t)); } - /* reget the mapping, since s

[Qemu-devel] [PATCH 10/13] vvfat: correctly generate numeric-tail of short file names

2017-05-15 Thread Hervé Poussineau
for non-ASCII filenames. Specification: "FAT: General overview of on-disk format" v1.03, page 31 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 67 +++ 1 file changed, 35 insertions(+), 32 deletions(-) diff --git a/block/vvfat.

[Qemu-devel] [PATCH 05/13] vvfat: introduce offset_to_bootsector, offset_to_fat and offset_to_root_dir

2017-05-15 Thread Hervé Poussineau
first_sectors_number by offset_to_fat. Replace faked_sectors by offset_to_rootdir. Signed-off-by: Hervé Poussineau --- block/vvfat.c | 67 +++ 1 file changed, 40 insertions(+), 27 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 4f4a63c03f

[Qemu-devel] [PATCH 01/13] vvfat: fix qemu-img map and qemu-img convert

2017-05-15 Thread Hervé Poussineau
img convert. Fixes: 4480e0f924a42e1db8b8cfcac4d0634dd1bb27a0 Fixes: https://bugs.launchpad.net/qemu/+bug/1599539 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index af5153d27d..dfa2a242e1 100644

[Qemu-devel] [PATCH 13/13] vvfat: change OEM name to 'MSWIN4.1'

2017-05-15 Thread Hervé Poussineau
quot; Specification: "FAT: General overview of on-disk format" v1.03, page 9 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/vvfat.c b/block/vvfat.c index f96034cda1..b321065060 100644 --- a/block/vvfat.c +++ b/bl

[Qemu-devel] [PATCH 02/13] vvfat: replace tabs by 8 spaces

2017-05-15 Thread Hervé Poussineau
This was a complete mess. On 2299 indented lines: - 1329 were with spaces only - 617 with tabulations only - 353 with spaces and tabulations Signed-off-by: Hervé Poussineau --- block/vvfat.c | 2054 - 1 file changed, 1027 insertions

[Qemu-devel] [PATCH 07/13] vvfat: always create . and .. entries at first and in that order

2017-05-15 Thread Hervé Poussineau
page 25 Fixes: https://bugs.launchpad.net/qemu/+bug/1599539 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 348cffe1c4..7da07068b8 100644 --- a/block/vvfat.c +++ b/block/vv

[Qemu-devel] [PATCH 08/13] vvfat: correctly create long names for non-ASCII filenames

2017-05-15 Thread Hervé Poussineau
/7153935/how-to-convert-utf-8-stdstring-to-utf-16-stdwstring Signed-off-by: Hervé Poussineau --- block/vvfat.c | 132 ++ 1 file changed, 97 insertions(+), 35 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 7da07068b8

[Qemu-devel] [PATCH 11/13] vvfat: limit number of entries in root directory in FAT12/FAT16

2017-05-15 Thread Hervé Poussineau
). Fixes: https://bugs.launchpad.net/qemu/+bug/1599539/comments/4 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 98978df404..7b21d6bb21 100644 --- a/block/vvfat.c

[Qemu-devel] [PATCH 12/13] vvfat: handle KANJI lead byte 0xe5

2017-05-15 Thread Hervé Poussineau
Specification: "FAT: General overview of on-disk format" v1.03, page 23 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 7b21d6bb21..f96034cda1 100644 --- a/block/vvfat.c +

[Qemu-devel] [PATCH 06/13] vvfat: fix field names in FAT12/FAT16 boot sector

2017-05-15 Thread Hervé Poussineau
Specification: "FAT: General overview of on-disk format" v1.03, page 11 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index f60d2a3889..348cffe1c4 100644 --- a/block/vvf

[Qemu-devel] [PATCH 09/13] vvfat: correctly create base short names for non-ASCII filenames

2017-05-15 Thread Hervé Poussineau
neral overview of on-disk format" v1.03, pages 30/31 Signed-off-by: Hervé Poussineau --- block/vvfat.c | 84 +++ 1 file changed, 56 insertions(+), 28 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 5f6356c834..37cfaa8

[Qemu-devel] [PATCH 03/13] vvfat: fix typos

2017-05-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- block/vvfat.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 002bd86e42..57f2489689 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -404,9 +404,9 @@ static void init_mbr(BDRVVVFATState *s, int

[Qemu-devel] [PATCH 00/13] vvfat: misc fixes for read-only mode

2017-05-15 Thread Hervé Poussineau
eckpatch.pl, as it changes indentation only. Hervé Hervé Poussineau (13): vvfat: fix qemu-img map and qemu-img convert vvfat: replace tabs by 8 spaces vvfat: fix typos vvfat: rename useless enumeration values vvfat: introduce offset_to_bootsector, offset_to_fat and offset_to_root_d

[Qemu-devel] [PATCH 04/13] vvfat: rename useless enumeration values

2017-05-15 Thread Hervé Poussineau
MODE_FAKED and MODE_RENAMED are not and were never used. Signed-off-by: Hervé Poussineau --- block/vvfat.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index 57f2489689..4f4a63c03f 100644 --- a/block/vvfat.c +++ b/block/vvfat.c

Re: [Qemu-devel] [PATCH v3 2/3] audio: Rename audio_init() to soundhw_init()

2017-05-08 Thread Hervé Poussineau
Le 08/05/2017 à 22:57, Eduardo Habkost a écrit : To make it consistent with the remaining soundhw.c functions and avoid confusion with the audio_init() function in audio/audio.c, rename audio_init() to soundhw_init(). Signed-off-by: Eduardo Habkost You should probably add a patch before 1/3 t

Re: [Qemu-devel] [PATCH v3 3/3] audio: Rename hw/audio/audio.h to hw/audio/soundhw.h

2017-05-08 Thread Hervé Poussineau
Le 08/05/2017 à 22:57, Eduardo Habkost a écrit : All the functions in hw/audio/audio.h are called "soundhw_*()" and live in hw/audio/audiohw.c. Rename the header file for consistency. Signed-off-by: Eduardo Habkost Reviewed-by: Hervé Poussineau --- Changes v2 -> v3: * Updat

Re: [Qemu-devel] [PATCH 6/6] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-05-08 Thread Hervé Poussineau
Le 08/05/2017 à 22:49, Eduardo Habkost a écrit : Hi, I stumbled upon this code while working on arch_init.c cleanups: On Thu, Dec 29, 2016 at 11:12:16PM +0100, Hervé Poussineau wrote: [...] +static void ibm_40p_init(MachineState *machine) +{ [...] +/* initialize audio subsystem

Re: [Qemu-devel] [Bug 1684239] [NEW] vvfat core dump when enabling RW

2017-04-19 Thread Hervé Poussineau
Hi Rolando, Le 19/04/2017 à 19:45, Rolando Zappacosta a écrit : Public bug reported: Hi guys, I'm getting this qemu crash message: qemu-system-x86_64: /build/qemu-TziMIO/qemu-2.5+dfsg/block/vvfat.c:2290: commit_direntries: Assertion `!strncmp(s->directory.pointer, "QEMU", 4)' failed. Aborted

Re: [Qemu-devel] [PATCH] dma/rc4030: fix a mixed declarations and code warning

2017-03-14 Thread Hervé Poussineau
Le 14/03/2017 à 18:11, Yongbok Kim a écrit : Signed-off-by: Yongbok Kim Reviewed-by: Hervé Poussineau --- hw/dma/rc4030.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dma/rc4030.c b/hw/dma/rc4030.c index 8ad97f1..4dbb4fd 100644 --- a/hw/dma/rc4030.c +++ b/hw/dma

Re: [Qemu-devel] [PATCH for-2.8] dma/rc4030: translate memory accesses only when they occur

2017-03-10 Thread Hervé Poussineau
Ping again. Le 26/02/2017 à 20:19, Hervé Poussineau a écrit : Ping again. Le 22/02/2017 à 07:19, Hervé Poussineau a écrit : Ping? Le 18/11/2016 à 23:43, Hervé Poussineau a écrit : This simplifies the code a lot, and this fixes big memory leaks introduced in

Re: [Qemu-devel] [PATCH v2 4/4] [RfC] stdvga: add xres and yres properties.

2017-03-09 Thread Hervé Poussineau
Le 09/03/2017 à 09:38, Gerd Hoffmann a écrit : Add two new registers to the qemu extended register range, carrying the suggested width and height of the display device. In case the xres and yres properties are set, fill these new registers accordingly. Additionally guest driver updates are need

Re: [Qemu-devel] [PATCH v2] vl: disable default cdrom when using explicitely scsi-hd

2017-02-27 Thread Hervé Poussineau
Ping? Le 20/02/2017 à 21:41, Hervé Poussineau a écrit : In commit af6bf1328ef90fae617857c02697e0174b84d596 (May 2011), ide-hd, ide-cd and scsi-cd have been added to disable default cdrom, "or else you can't put one on secondary master without -nodefaults". Make it the same for

Re: [Qemu-devel] [PATCH for-2.8] dma/rc4030: translate memory accesses only when they occur

2017-02-26 Thread Hervé Poussineau
Ping again. Le 22/02/2017 à 07:19, Hervé Poussineau a écrit : Ping? Le 18/11/2016 à 23:43, Hervé Poussineau a écrit : This simplifies the code a lot, and this fixes big memory leaks introduced in a3d586f704609a45b6037534cb2f34da5dfd8895 Windows NT is now able to boot without using gigabytes

Re: [Qemu-devel] [PATCH for-2.8] dma/rc4030: translate memory accesses only when they occur

2017-02-21 Thread Hervé Poussineau
Ping? Le 18/11/2016 à 23:43, Hervé Poussineau a écrit : This simplifies the code a lot, and this fixes big memory leaks introduced in a3d586f704609a45b6037534cb2f34da5dfd8895 Windows NT is now able to boot without using gigabytes of ram on the host. Signed-off-by: Hervé Poussineau --- hw

Re: [Qemu-devel] [PATCH 3/9] ppc: use ppc_graphic_* defines

2017-02-21 Thread Hervé Poussineau
changed, 14 insertions(+), 14 deletions(-) Reviewed-by: Hervé Poussineau

[Qemu-devel] [PATCH v2] vl: disable default cdrom when using explicitely scsi-hd

2017-02-20 Thread Hervé Poussineau
rom device will disappear instead of being empty. Signed-off-by: Hervé Poussineau --- vl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vl.c b/vl.c index 27d9829..4af95b3 100644 --- a/vl.c +++ b/vl.c @@ -226,6 +226,7 @@ static struct { { .driver = "ide-hd",

Re: [Qemu-devel] [PULL 050/107] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-02-18 Thread Hervé Poussineau
Le 12/02/2017 à 22:15, Artyom Tarasenko a écrit : On Thu, Feb 2, 2017 at 6:13 AM, David Gibson wrote: From: Hervé Poussineau Machine supports both Open Hack'Ware and OpenBIOS. Open Hack'Ware is the default because OpenBIOS is currently unable to boot PReP boot partitions or PR

Re: [Qemu-devel] [PATCH] vl: disable default cdrom when using explicitely scsi-hd

2017-02-18 Thread Hervé Poussineau
Hi, Le 09/01/2017 à 14:48, Paolo Bonzini a écrit : On 09/01/2017 13:49, Markus Armbruster wrote: Hervé Poussineau writes: 'ide-hd', 'ide-cd' and 'scsi-cd' devices already disable default cdrom. Make it the same for 'scsi-hd'. That way, we can add/r

Re: [Qemu-devel] [PATCH] hw/pci-host/prep: Do not use hw_error() in realize function

2017-02-09 Thread Hervé Poussineau
insertions(+), 5 deletions(-) Reviewed-by: Hervé Poussineau

Re: [Qemu-devel] [PATCH 0/6] ppc: add a IBM 40p machine (RS/6000, PReP)

2017-01-14 Thread Hervé Poussineau
Le 13/01/2017 à 13:23, Mark Cave-Ayland a écrit : OpenBIOS doesn't support PReP boot partitions (type 0x41) nor PReP kernels so this is a no-go yet. Just out of interest, is it just the PReP boot partition support that is missing from OpenBIOS? If so, that should be fairly easy to implement if

Re: [Qemu-devel] [PATCH 0/6] ppc: add a IBM 40p machine (RS/6000, PReP)

2017-01-12 Thread Hervé Poussineau
Le 11/01/2017 à 17:58, Artyom Tarasenko a écrit : Hi Hervé, nice work! On Thu, Dec 29, 2016 at 11:12 PM, Hervé Poussineau wrote: Hi, This patchset adds the emulation of the IBM RS/6000 7020 (40p). The real machine is able to run AIX (up to 4.3.3), Windows NT (up to 4.0 SP1), the beta of OS

[Qemu-devel] [PATCH] ppc/prep: update MAINTAINERS file

2017-01-12 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- MAINTAINERS | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1444b26..f4b02ab 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -657,10 +657,13 @@ F: hw/misc/macio/ F: hw/intc/heathrow_pic.c PReP +M: Hervé

Re: [Qemu-devel] [PATCH 1/6] pci: add pci_vga_type(), giving the device name of the chosen VGA device

2017-01-10 Thread Hervé Poussineau
Le 10/01/2017 à 04:14, Michael S. Tsirkin a écrit : On Tue, Jan 03, 2017 at 10:01:25AM +1100, David Gibson wrote: On Thu, Dec 29, 2016 at 11:12:11PM +0100, Hervé Poussineau wrote: This is in fact a split of pci_vga_init() function in two parts. Signed-off-by: Hervé Poussineau Reviewed-by

Re: [Qemu-devel] [Qemu-ppc] [PATCH v3 4/4] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-01-10 Thread Hervé Poussineau
Le 09/01/2017 à 13:25, Thomas Huth a écrit : Hi, On 07.01.2017 16:23, Hervé Poussineau wrote: Machine supports both Open Hack'Ware and OpenBIOS. Open Hack'Ware is the default because OpenBIOS is currently unable to boot PReP boot partitions or PReP kernels. Signed-off-by: Hervé

Re: [Qemu-devel] [PATCH] hw/net/dp8393x: Avoid unintentional sign extensions on addresses

2017-01-10 Thread Hervé Poussineau
to read. This should fix Coverity issues 1307765, 1307766, 1307767, 1307768. (To avoid having a ctda read function only used in a DPRINTF, we move the DPRINTF down slightly so it can use the ttda function.) Signed-off-by: Peter Maydell Reviewed-by: Hervé Poussineau

Re: [Qemu-devel] [PATCH v2] hw/display: QOM'ify g364fb.c

2017-01-07 Thread Hervé Poussineau
: Hervé Poussineau

[Qemu-devel] [PATCH v3 3/4] prep: add IBM RS/6000 7020 (40p) memory controller

2017-01-07 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau Reviewed-by: David Gibson --- default-configs/ppc-softmmu.mak | 1 + hw/ppc/Makefile.objs| 1 + hw/ppc/rs6000_mc.c | 232 hw/ppc/trace-events | 7 ++ 4 files changed, 241

[Qemu-devel] [PATCH v3 4/4] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-01-07 Thread Hervé Poussineau
Machine supports both Open Hack'Ware and OpenBIOS. Open Hack'Ware is the default because OpenBIOS is currently unable to boot PReP boot partitions or PReP kernels. Signed-off-by: Hervé Poussineau --- default-configs/ppc-softmmu.mak | 1 + hw/ppc/prep.c

[Qemu-devel] [PATCH v3 2/4] prep: add PReP System I/O

2017-01-07 Thread Hervé Poussineau
6000/technology/spec/srp1_1.exe section 6.1.5 (I/O Device Mapping) Signed-off-by: Hervé Poussineau Reviewed-by: David Gibson --- hw/ppc/Makefile.objs | 1 + hw/ppc/prep_systemio.c | 303 + hw/ppc/trace-events| 4 + 3 files changed,

[Qemu-devel] [PATCH v3 0/4] ppc: add a IBM 40p machine (RS/6000, PReP)

2017-01-07 Thread Hervé Poussineau
ostly works with Open Hack'Ware and OpenBIOS - various changes due to David Gibson's remarks Hervé Poussineau (4): prep: do not use global variable to access nvram prep: add PReP System I/O prep: add IBM RS/6000 7020 (40p) memory controller prep: add IBM RS/6000 7020 (40p) machine emul

[Qemu-devel] [PATCH v3 1/4] prep: do not use global variable to access nvram

2017-01-07 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/ppc/prep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 054af1e..9fb89d3 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -339,13 +339,13 @@ static PortioList prep_port_list; /* NVRAM helpers

Re: [Qemu-devel] [PATCH v2 4/4] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-01-06 Thread Hervé Poussineau
Le 06/01/2017 à 00:21, David Gibson a écrit : On Thu, Jan 05, 2017 at 10:56:57PM +0100, Hervé Poussineau wrote: Machine supports both Open Hack'Ware and OpenBIOS. Open Hack'Ware is the default because OpenBIOS is currently unable to boot PReP boot partitions or PReP kernels. Sig

[Qemu-devel] [PATCH v2 3/4] prep: add IBM RS/6000 7020 (40p) memory controller

2017-01-05 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- default-configs/ppc-softmmu.mak | 1 + hw/ppc/Makefile.objs| 1 + hw/ppc/rs6000_mc.c | 232 hw/ppc/trace-events | 7 ++ 4 files changed, 241 insertions(+) create mode 100644

[Qemu-devel] [PATCH v2 1/4] prep: do not use global variable to access nvram

2017-01-05 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/ppc/prep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 054af1e..9fb89d3 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -339,13 +339,13 @@ static PortioList prep_port_list; /* NVRAM helpers

[Qemu-devel] [PATCH v2 2/4] prep: add PReP System I/O

2017-01-05 Thread Hervé Poussineau
6000/technology/spec/srp1_1.exe section 6.1.5 (I/O Device Mapping) Signed-off-by: Hervé Poussineau --- hw/ppc/Makefile.objs | 1 + hw/ppc/prep_systemio.c | 309 + hw/ppc/trace-events| 4 + 3 files changed, 314 insertions(+) create mod

[Qemu-devel] [PATCH v2 4/4] prep: add IBM RS/6000 7020 (40p) machine emulation

2017-01-05 Thread Hervé Poussineau
Machine supports both Open Hack'Ware and OpenBIOS. Open Hack'Ware is the default because OpenBIOS is currently unable to boot PReP boot partitions or PReP kernels. Signed-off-by: Hervé Poussineau --- default-configs/ppc-softmmu.mak | 1 + hw/ppc/prep.c

[Qemu-devel] [PATCH v2 0/4] ppc: add a IBM 40p machine (RS/6000, PReP)

2017-01-05 Thread Hervé Poussineau
ved patches related to display adapter: Let's wait for an emulation of the real display adapter (an S3 Trio), as current VGA adapter already mostly works with Open Hack'Ware and OpenBIOS - various changes due to David Gibson's remarks Hervé Poussineau (4): prep: do not use glo

Re: [Qemu-devel] [PATCH 4/6] prep: QOM'ify System I/O

2017-01-05 Thread Hervé Poussineau
Le 05/01/2017 à 01:41, David Gibson a écrit : On Wed, Jan 04, 2017 at 10:17:10PM +0100, Hervé Poussineau wrote: Le 03/01/2017 à 05:45, David Gibson a écrit : On Thu, Dec 29, 2016 at 11:12:14PM +0100, Hervé Poussineau wrote: Part of the functionality is copied from hw/ppc/prep.c. Also add

Re: [Qemu-devel] [PATCH 4/6] prep: QOM'ify System I/O

2017-01-04 Thread Hervé Poussineau
Le 03/01/2017 à 05:45, David Gibson a écrit : On Thu, Dec 29, 2016 at 11:12:14PM +0100, Hervé Poussineau wrote: Part of the functionality is copied from hw/ppc/prep.c. Also add support for board identification/equipment registers. Signed-off-by: Hervé Poussineau --- hw/ppc/Makefile.objs

Re: [Qemu-devel] [PATCH v3] ps2: Fix lost scancodes by recent changes

2017-01-04 Thread Hervé Poussineau
Le 04/01/2017 à 09:50, Gerd Hoffmann a écrit : On Mi, 2016-12-28 at 04:55 +0900, OGAWA Hirofumi wrote: With "ps2: use QEMU qcodes instead of scancodes", key handling was changed to qcode base. But all scancodes are not converted to new one. This adds some missing qcodes/scancodes what I found i

Re: [Qemu-devel] [PATCH 5/6] prep: add IBM RS/6000 7020 (40p) memory controller

2017-01-03 Thread Hervé Poussineau
Le 03/01/2017 à 05:57, David Gibson a écrit : On Thu, Dec 29, 2016 at 11:12:15PM +0100, Hervé Poussineau wrote: Signed-off-by: Hervé Poussineau --- default-configs/ppc-softmmu.mak | 1 + hw/ppc/Makefile.objs| 1 + hw/ppc/rs6000_mc.c | 232

Re: [Qemu-devel] [PATCH 4/6] prep: QOM'ify System I/O

2017-01-03 Thread Hervé Poussineau
Le 03/01/2017 à 00:03, David Gibson a écrit : On Thu, Dec 29, 2016 at 11:12:14PM +0100, Hervé Poussineau wrote: Part of the functionality is copied from hw/ppc/prep.c. Also add support for board identification/equipment registers. Needs more detail in the commit message. What is system I/O

Re: [Qemu-devel] [PATCH 2/6] vga: increase priority of 0xa0000 memory region

2017-01-03 Thread Hervé Poussineau
Le 03/01/2017 à 00:02, David Gibson a écrit : On Thu, Dec 29, 2016 at 11:12:12PM +0100, Hervé Poussineau wrote: VGA device registers vram as BAR 0. If this BAR is activated as a very low address which crosses 0xa-0xb, low memory region is not accessible anymore. This fixes display on

[Qemu-devel] [PATCH] ui/gtk: fix crash at startup when no console is available

2017-01-01 Thread Hervé Poussineau
nodefaults Signed-off-by: Hervé Poussineau --- ui/gtk.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/gtk.c b/ui/gtk.c index a216216..406de4f 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -2171,6 +2171,8 @@ static gboolean gtkinit; void gtk_display_init(DisplayState

[Qemu-devel] [PATCH] vl: disable default cdrom when using explicitely scsi-hd

2016-12-31 Thread Hervé Poussineau
'ide-hd', 'ide-cd' and 'scsi-cd' devices already disable default cdrom. Make it the same for 'scsi-hd'. That way, we can add/replace the device on lun=2 without using -nodefaults. Signed-off-by: Hervé Poussineau --- vl.c | 1 + 1 file changed, 1 inse

[Qemu-devel] [PATCH 4/6] prep: QOM'ify System I/O

2016-12-29 Thread Hervé Poussineau
Part of the functionality is copied from hw/ppc/prep.c. Also add support for board identification/equipment registers. Signed-off-by: Hervé Poussineau --- hw/ppc/Makefile.objs | 1 + hw/ppc/prep_systemio.c | 302 + hw/ppc/trace-events| 4

[Qemu-devel] [PATCH 0/6] ppc: add a IBM 40p machine (RS/6000, PReP)

2016-12-29 Thread Hervé Poussineau
and that operating system list running on it is quite wide. I hope that 'prep' machine can be deprecated soon and then later removed. Patches 1 to 3 are cleanups, and can probably be committed first. Patches 4 to 6 are the real implementation of the IBM 40p. Hervé Poussineau (6): pc

[Qemu-devel] [PATCH 2/6] vga: increase priority of 0xa0000 memory region

2016-12-29 Thread Hervé Poussineau
VGA device registers vram as BAR 0. If this BAR is activated as a very low address which crosses 0xa-0xb, low memory region is not accessible anymore. This fixes display on PReP machine if we enable PCI mapping at address 0. Signed-off-by: Hervé Poussineau --- hw/display/vga.c | 2

[Qemu-devel] [PATCH 6/6] prep: add IBM RS/6000 7020 (40p) machine emulation

2016-12-29 Thread Hervé Poussineau
Machine supports both Open Hack'Ware and OpenBIOS. Open Hack'Ware is the default because OpenBIOS is currently unable to boot PReP boot partitions or PReP kernels. Signed-off-by: Hervé Poussineau --- default-configs/ppc-softmmu.mak | 1 + hw/ppc/prep.c

[Qemu-devel] [PATCH 5/6] prep: add IBM RS/6000 7020 (40p) memory controller

2016-12-29 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- default-configs/ppc-softmmu.mak | 1 + hw/ppc/Makefile.objs| 1 + hw/ppc/rs6000_mc.c | 232 hw/ppc/trace-events | 7 ++ 4 files changed, 241 insertions(+) create mode 100644

[Qemu-devel] [PATCH 3/6] prep: do not use global variable to access nvram

2016-12-29 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/ppc/prep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index 054af1e..9fb89d3 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -339,13 +339,13 @@ static PortioList prep_port_list; /* NVRAM helpers

[Qemu-devel] [PATCH 1/6] pci: add pci_vga_type(), giving the device name of the chosen VGA device

2016-12-29 Thread Hervé Poussineau
This is in fact a split of pci_vga_init() function in two parts. Signed-off-by: Hervé Poussineau --- hw/pci/pci.c | 22 -- include/hw/pci/pci.h | 1 + 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/hw/pci/pci.c b/hw/pci/pci.c index 24fae16..0d5a862

Re: [Qemu-devel] [PATCH v3] ps2: Fix lost scancodes by recent changes

2016-12-27 Thread Hervé Poussineau
ned-off-by: OGAWA Hirofumi Reviewed-by: Hervé Poussineau

Re: [Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes

2016-12-27 Thread Hervé Poussineau
Le 23/12/2016 à 23:49, OGAWA Hirofumi a écrit : Hi, Hervé Poussineau writes: [from ui/input-keymap.c] [Q_KEY_CODE_RO] = 0x73, +[Q_KEY_CODE_HIRAGANA] = 0x70, +[Q_KEY_CODE_HENKAN] = 0x79, +[Q_KEY_CODE_YEN] = 0x7d, [Q_KEY_CODE_KP_COMMA] = 0x7e, [Q_KEY_CODE__MAX] = 0

Re: [Qemu-devel] [PATCH] ps2: Fix lost scancodes by recent changes

2016-12-23 Thread Hervé Poussineau
Le 23/12/2016 à 14:00, OGAWA Hirofumi a écrit : With "ps2: use QEMU qcodes instead of scancodes", key handling was changed to qcode base. But all scancodes are not converted to new one. This adds some missing qcodes what I found in using. Signed-off-by: OGAWA Hirofumi --- hw/input/ps2.c

[Qemu-devel] [PATCH] rtl8139: correctly handle PHY reset

2016-12-13 Thread Hervé Poussineau
ned-off-by: Hervé Poussineau --- hw/net/rtl8139.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index f05e59c..671c7e4 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -1205,6 +1205,20 @@ s

[Qemu-devel] [PATCH] slirp: support dynamic block size for TFTP transfers

2016-11-21 Thread Hervé Poussineau
The blocksize option is defined in RFC 1783. We now support block sizes between 1 and 1432 bytes, instead of 512 only. Signed-off-by: Hervé Poussineau --- slirp/tftp.c | 26 ++ slirp/tftp.h | 8 +--- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a

[Qemu-devel] [PATCH for-2.8] dma/rc4030: translate memory accesses only when they occur

2016-11-18 Thread Hervé Poussineau
This simplifies the code a lot, and this fixes big memory leaks introduced in a3d586f704609a45b6037534cb2f34da5dfd8895 Windows NT is now able to boot without using gigabytes of ram on the host. Signed-off-by: Hervé Poussineau --- hw/dma/rc4030.c | 158

[Qemu-devel] [PATCH for-2.8] scsi/esp: do not raise an interrupt when reading the FIFO register

2016-11-18 Thread Hervé Poussineau
This fixes SCSI adapter self-tests done in MIPS Jazz emulation, broken since ff589551c8e8e9e95e211b9d8daafb4ed39f1aec. Signed-off-by: Hervé Poussineau --- hw/scsi/esp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c index 1f2f2d3..5a5a4e9 100644 --- a/hw/scsi

Re: [Qemu-devel] [PATCH] dma: rc4030: limit interval timer reload value

2016-11-15 Thread Hervé Poussineau
Le 16/11/2016 à 07:29, P J P a écrit : +-- On Wed, 16 Nov 2016, Hervé Poussineau wrote --+ | I don't have any datasheet for this device either, so I tested with real | programs. Those initialize itr field to either 0 or to 9, so your mask | doesn't change anything. | | Tested

Re: [Qemu-devel] [PATCH] dma: rc4030: limit interval timer reload value

2016-11-15 Thread Hervé Poussineau
don't have any datasheet for this device either, so I tested with real programs. Those initialize itr field to either 0 or to 9, so your mask doesn't change anything. Tested-by: Hervé Poussineau Also, s->itr is used here: tm_hz = 1000 / (s->itr + 1); t

Re: [Qemu-devel] [PATCH v2 0/3] atapi: classify read_cd as conditionally returning data

2016-11-02 Thread Hervé Poussineau
patches: Tested-by: Hervé Poussineau For convenience, this branch is available at: https://github.com/jnsnow/qemu.git branch ide-fix-read-cd https://github.com/jnsnow/qemu/tree/ide-fix-read-cd This version is tagged

Re: [Qemu-devel] [PATCH] atapi: classify read_cd as conditionally returning data

2016-10-30 Thread Hervé Poussineau
Le 29/10/2016 à 00:32, John Snow a écrit : For the purposes of byte_count_limit verification, add a new flag that identifies read_cd as sometimes returning data, then check the BCL in its command handler after we know that it will indeed return data. Reported-by: Hervé Poussineau Signed-off-by

[Qemu-devel] [PATCH] adb: change handler only when recognized

2016-10-25 Thread Hervé Poussineau
: Hervé Poussineau --- hw/input/adb.c | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/hw/input/adb.c b/hw/input/adb.c index 3d39368..43d3205 100644 --- a/hw/input/adb.c +++ b/hw/input/adb.c @@ -396,9 +396,15 @@ static int adb_kbd_request(ADBDevice *d

[Qemu-devel] [PATCH] i8259: give ISA device when registering ISA ioports

2016-10-02 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/intc/i8259_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c index 3a850b0..d9a5e8b 100644 --- a/hw/intc/i8259_common.c +++ b/hw/intc/i8259_common.c @@ -70,10 +70,11 @@ static

Re: [Qemu-devel] [PATCH v2 2/6] intc/i8259: implement InterruptStatsProvider interface

2016-09-27 Thread Hervé Poussineau
Le 28/09/2016 à 03:37, David Gibson a écrit : On Tue, Sep 27, 2016 at 08:49:47PM +0200, Hervé Poussineau wrote: Le 27/09/2016 à 06:11, David Gibson a écrit : On Mon, Sep 26, 2016 at 10:23:24PM +0200, Hervé Poussineau wrote: Signed-off-by: Hervé Poussineau --- hw/intc/i8259.c | 37

Re: [Qemu-devel] [PATCH v2 2/6] intc/i8259: implement InterruptStatsProvider interface

2016-09-27 Thread Hervé Poussineau
Le 27/09/2016 à 06:11, David Gibson a écrit : On Mon, Sep 26, 2016 at 10:23:24PM +0200, Hervé Poussineau wrote: Signed-off-by: Hervé Poussineau --- hw/intc/i8259.c | 37 + 1 file changed, 37 insertions(+) diff --git a/hw/intc/i8259.c b/hw/intc/i8259.c

Re: [Qemu-devel] [PATCH v2 3/6] intc/slavio_intctl: implement InterruptStatsProvider interface

2016-09-27 Thread Hervé Poussineau
:23 PM, Hervé Poussineau wrote: Signed-off-by: Hervé Poussineau --- hw/intc/slavio_intctl.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/hw/intc/slavio_intctl.c b/hw/intc/slavio_intctl.c index e82e893..a9acb64 100644 --- a/hw/intc/slavio_intctl.c +++ b

[Qemu-devel] [PATCH v2 0/6] intc: change 'info irq' and 'info pic' to be target-agnostic

2016-09-26 Thread Hervé Poussineau
bout the i8259 interrupt controller. Changes since v1: - renamed interface from IntCtrl to InterruptStatsProvider Hervé Hervé Poussineau (6): intc: add an interface to gather statistics/informations on interrupt controllers intc/i8259: implement InterruptStatsProvider interface intc/slav

[Qemu-devel] [PATCH v2 1/6] intc: add an interface to gather statistics/informations on interrupt controllers

2016-09-26 Thread Hervé Poussineau
This interface will be used by HMP commands 'info irq' and 'info pic'. Signed-off-by: Hervé Poussineau --- hw/intc/Makefile.objs | 1 + hw/intc/intc.c | 41 + include/hw/intc/intc.h | 30 ++

[Qemu-devel] [PATCH v2 6/6] intc: make HMP 'info irq' and 'info pic' commands available on all targets

2016-09-26 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hmp-commands-info.hx | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hmp-commands-info.hx b/hmp-commands-info.hx index 6a7c476..55d50c4 100644 --- a/hmp-commands-info.hx +++ b/hmp-commands-info.hx @@ -172,8 +172,6 @@ STEXI Show the

[Qemu-devel] [PATCH v2 3/6] intc/slavio_intctl: implement InterruptStatsProvider interface

2016-09-26 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/intc/slavio_intctl.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/hw/intc/slavio_intctl.c b/hw/intc/slavio_intctl.c index e82e893..a9acb64 100644 --- a/hw/intc/slavio_intctl.c +++ b/hw/intc/slavio_intctl.c

[Qemu-devel] [PATCH v2 5/6] intc: make HMP 'info irq' and 'info pic' commands use InterruptStatsProvider interface

2016-09-26 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hmp-commands-info.hx | 12 - hmp.c | 65 ++ hmp.h | 2 ++ hw/intc/i8259.c| 36 - hw/intc/lm32_pic.c | 31

[Qemu-devel] [PATCH v2 4/6] intc/lm32_pic: implement InterruptStatsProvider interface

2016-09-26 Thread Hervé Poussineau
We have to change the vmstate version due to changes in statistics counters. Signed-off-by: Hervé Poussineau --- hw/intc/lm32_pic.c | 32 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/hw/intc/lm32_pic.c b/hw/intc/lm32_pic.c index 3dad01c

[Qemu-devel] [PATCH v2 2/6] intc/i8259: implement InterruptStatsProvider interface

2016-09-26 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/intc/i8259.c | 37 + 1 file changed, 37 insertions(+) diff --git a/hw/intc/i8259.c b/hw/intc/i8259.c index c2607a5..75c8d22 100644 --- a/hw/intc/i8259.c +++ b/hw/intc/i8259.c @@ -29,6 +29,7 @@ #include "qemu/ti

<    1   2   3   4   5   6   7   8   9   10   >