Re: [Qemu-devel] [PATCH v1 3/3] raspi: Add "raspi3" machine type

2018-02-15 Thread Pekka Enberg
Hi, On 02/15/2018 02:39 PM, Peter Maydell wrote: On 8 February 2018 at 05:50, Pekka Enberg wrote: This patch adds a "raspi3" machine type, which can now be selected as the machine to run on by users via the "-M" command line option to QEMU. The machine type does *not* ignore

Re: [Qemu-devel] [PATCH v1 1/3] bcm2836: Make CPU type configurable

2018-02-15 Thread Pekka Enberg
On 02/15/2018 01:48 PM, Peter Maydell wrote: On 8 February 2018 at 05:50, Pekka Enberg wrote: This patch adds a "cpu-type" property to BCM2836 SoC in preparation for reusing the code for the Raspberry Pi 3, which has a different processor model. Signed-off-by: Pekka Enberg

[Qemu-devel] [PATCH v2 2/3] raspi: Raspberry Pi 3 support

2018-02-15 Thread Pekka Enberg
This patch adds Raspberry Pi 3 support to hw/arm/raspi.c. The differences to Pi 2 are: - Firmware address - Board ID - Board revision The CPU is different too, but that's going to be configured as part of the machine default CPU when we introduce a new machine type. The patch was written

[Qemu-devel] [PATCH v2 3/3] raspi: Add "raspi3" machine type

2018-02-15 Thread Pekka Enberg
This patch adds a "raspi3" machine type, which can now be selected as the machine to run on by users via the "-M" command line option to QEMU. The machine type does *not* ignore memory transaction failures so we likely need to add some dummy devices later when people run something more

[Qemu-devel] [PATCH v2 1/3] bcm2836: Make CPU type configurable

2018-02-15 Thread Pekka Enberg
This patch adds a "cpu-type" property to BCM2836 SoC in preparation for reusing the code for the Raspberry Pi 3, which has a different processor model. Signed-off-by: Pekka Enberg --- hw/arm/bcm2836.c | 17 + hw/arm/raspi.c | 3 +++

[Qemu-devel] [PATCH v2 0/3] Raspberry Pi 3 support

2018-02-15 Thread Pekka Enberg
This patch series adds support for Raspberry Pi 3 as a new machine model "raspi3", which is an extension of the "raspi2" model with the following differences: - Default CPU type is "cortex-a53" - Firmware is at address 0x8 - Board ID is 0xc44 and board revision is 0xa02082 The patches

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/3] Sam460ex emulation

2018-02-15 Thread Thomas Huth
On 15.02.2018 22:27, BALATON Zoltan wrote: > Remaining patches for Sam460ex emulation. The original cover letter > with more details is here: > > http://lists.nongnu.org/archive/html/qemu-ppc/2017-08/msg00112.html > > We'll need to also add binaries for firmware (customised u-boot > version) and

[Qemu-devel] [Bug 1331334] Re: driftfix=none and migration on Win7 guest causes time to go 10 times as fast

2018-02-15 Thread Thomas Huth
OK, thanks for checking again! So I'm closing this ticket now. ** Changed in: qemu Status: Incomplete => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1331334 Title:

Re: [Qemu-devel] [PULL 00/10] migration queue

2018-02-15 Thread Thomas Huth
On 15.02.2018 21:19, Dr. David Alan Gilbert wrote: > * Peter Maydell (peter.mayd...@linaro.org) wrote: >> On 14 February 2018 at 15:39, Dr. David Alan Gilbert (git) >> wrote: >>> From: "Dr. David Alan Gilbert" >>> >>> The following changes since commit

[Qemu-devel] [PATCH] tests/boot-serial-test: Fix problem with timeout due to dropped characters

2018-02-15 Thread Thomas Huth
Commit 92b540dac9fc3a5 introduce a counter to handle the timeouts in a better way. But in case ccnt reaches 512, the current read character is ignored - and if that character is part of the string that we are looking for, the test fails to match the string. Almost all of the tests look for a

Re: [Qemu-devel] [PATCH qemu v7 2/4] vfio/pci: Relax DMA map errors for MMIO regions

2018-02-15 Thread David Gibson
On Wed, Feb 14, 2018 at 08:55:41AM -0700, Alex Williamson wrote: > On Wed, 14 Feb 2018 19:09:16 +1100 > Alexey Kardashevskiy wrote: > > > On 14/02/18 12:33, David Gibson wrote: > > > On Tue, Feb 13, 2018 at 07:20:56PM +1100, Alexey Kardashevskiy wrote: > > >> On 13/02/18 16:41,

Re: [Qemu-devel] [PULL 2/3] tests: Enable boot-serial-test for hppa

2018-02-15 Thread Thomas Huth
On 16.02.2018 00:55, Philippe Mathieu-Daudé wrote: > On 02/04/2018 07:23 PM, Richard Henderson wrote: >> Reviewed-by: Thomas Huth >> Signed-off-by: Richard Henderson >> --- >> tests/boot-serial-test.c | 1 + >> tests/Makefile.include | 2 ++ >>

Re: [Qemu-devel] [QEMU-PPC] [PATCH V4 2/2] ppc/spapr-caps: For pseries-2.12 change spapr-cap defaults

2018-02-15 Thread David Gibson
On Fri, Feb 16, 2018 at 01:33:28PM +1100, Suraj Jitindar Singh wrote: > For the pseries-2.12 machine type, make the spapr-caps SPAPR_CAP_CFPC > and SPAPR_CAP_SBBC default to workaround. Thus if the host is capable > the guest will be able to take advantage of these workarounds by default. >

Re: [Qemu-devel] [PATCH v2 3/3] ppc: Add aCube Sam460ex board

2018-02-15 Thread David Gibson
On Thu, Feb 15, 2018 at 10:27:06PM +0100, BALATON Zoltan wrote: > Add emulation of aCube Sam460ex board based on AMCC 460EX embedded SoC. > This is not a complete implementation yet with a lot of components > still missing but enough for the U-Boot firmware to start and to boot > a Linux kernel or

[Qemu-devel] [PATCH 2/2] target/sh4: convert to TranslatorOps

2018-02-15 Thread Emilio G. Cota
This was fairly straightforward since it had already been converted to DisasContextBase; just had to add TARGET_TOO_MANY to the switch in tb_stop. Signed-off-by: Emilio G. Cota --- target/sh4/translate.c | 175 + 1 file changed, 90

Re: [Qemu-devel] [PATCH v2 1/3] ppc4xx: Add device models found in PPC440 core SoCs

2018-02-15 Thread David Gibson
On Thu, Feb 15, 2018 at 10:27:06PM +0100, BALATON Zoltan wrote: > These devices are found in newer SoCs based on 440 core e.g. the 460EX > (http://www.embeddeddeveloper.com/assets/processors/amcc/datasheets/ > PP460EX_DS2063.pdf) > > Signed-off-by: BALATON Zoltan Applied,

[Qemu-devel] [PATCH 1/2] translator: pass max_insns to tb_start

2018-02-15 Thread Emilio G. Cota
sh4 will need it. Signed-off-by: Emilio G. Cota --- accel/tcg/translator.c | 2 +- include/exec/translator.h | 3 ++- target/alpha/translate.c | 3 ++- target/arm/translate-a64.c | 4 +++- target/arm/translate.c | 4 +++- target/hppa/translate.c| 4 +++-

[Qemu-devel] [PATCH 0/2] target/sh4: translator loop conversion

2018-02-15 Thread Emilio G. Cota
Tested on Aurelien's debian sh4 image. There's a twist in this conversion in that max_insns might be modified by .tb_start; this is what patch 1 introduces. Note that I've sent patches for converting other targets to the translation loop; those have not yet hit master so in patch 1 I am ignoring

[Qemu-devel] [Bug 1331334] Re: driftfix=none and migration on Win7 guest causes time to go 10 times as fast

2018-02-15 Thread Matthew Stapleton
I am unable to reproduce this with qemu 2.11.0 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1331334 Title: driftfix=none and migration on Win7 guest causes time to go 10 times as fast Status

Re: [Qemu-devel] [RFC PATCH] capstone: fix building using system package

2018-02-15 Thread Philippe Mathieu-Daudé
What is interesting with this patch, is that, forcing use of system capstone, Travis builds ran much faster; longest build took 40min: https://travis-ci.org/philmd/qemu/builds/341979248 This revealed (without profiling yet) that compiling the capstone C++ takes some time... mingw32@i7-4600U#

Re: [Qemu-devel] [PATCH 01/02] fix issue where a branch to pc+4 confuses GDB because pc and npc are set to the same value

2018-02-15 Thread Steven Seeger
All, I think that the issue I pointed out the list is not a QEMU bug at all but a GDB bug. GDB's sparc software single step implementation seems to be what is stuck. It always re-sets the breakpoint at the current instruction in this case. It calculates the breakpoint offsets by analyzing the

Re: [Qemu-devel] [QEMU-PPC] [PATCH V4 1/2] ppc/spapr-caps: Disallow setting workaround for spapr-cap-ibs

2018-02-15 Thread David Gibson
On Fri, Feb 16, 2018 at 01:33:27PM +1100, Suraj Jitindar Singh wrote: > The spapr-cap cap-ibs can only have values broken or fixed as there is > no explicit workaround required. Currently setting the value workaround > for this cap will hit an assert if the guest makes the hcall >

[Qemu-devel] [QEMU-PPC] [PATCH V4 2/2] ppc/spapr-caps: For pseries-2.12 change spapr-cap defaults

2018-02-15 Thread Suraj Jitindar Singh
For the pseries-2.12 machine type, make the spapr-caps SPAPR_CAP_CFPC and SPAPR_CAP_SBBC default to workaround. Thus if the host is capable the guest will be able to take advantage of these workarounds by default. Otherwise if the host doesn't have these capabilities qemu will fail to start and

[Qemu-devel] [QEMU-PPC] [PATCH V4 1/2] ppc/spapr-caps: Disallow setting workaround for spapr-cap-ibs

2018-02-15 Thread Suraj Jitindar Singh
The spapr-cap cap-ibs can only have values broken or fixed as there is no explicit workaround required. Currently setting the value workaround for this cap will hit an assert if the guest makes the hcall h_get_cpu_characteristics. Report an error when attempting to apply the setting with a more

[Qemu-devel] [PATCH v3 7/7] hw/sd: move sdcard legacy API to "hw/sd/sdcard_legacy.h"

2018-02-15 Thread Philippe Mathieu-Daudé
omap_mmc.c is the last user left. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sd/sd.h| 16 -- include/hw/sd/sdcard_legacy.h | 50 +++ hw/sd/omap_mmc.c | 2 +- hw/sd/sd.c|

[Qemu-devel] [PATCH v3 1/7] hw/sd/milkymist-memcard: use qemu_log_mask()

2018-02-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Acked-by: Michael Walle --- hw/sd/milkymist-memcard.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PATCH v3 4/7] hw/sd/ssi-sd: use the SDBus API, connect the SDCard to the bus

2018-02-15 Thread Philippe Mathieu-Daudé
On reset the bus will reset the card, we can now drop the device_reset() call. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/ssi-sd.c | 32 +++- 1 file changed, 19 insertions(+), 13

[Qemu-devel] [RFC PATCH v3 5/7] hw/sd/pl181: expose a SDBus and connect the SDCard to it

2018-02-15 Thread Philippe Mathieu-Daudé
using the sdbus_*() API. Signed-off-by: Philippe Mathieu-Daudé --- RFC because how pl181_sdbus_create_inplace() doing class_init(SDBus) in realize(pl181) seems weird... from http://lists.nongnu.org/archive/html/qemu-devel/2018-02/msg01268.html: I think you have to change

[Qemu-devel] [PATCH v3 6/7] hw/sd: make sd_data_ready() static

2018-02-15 Thread Philippe Mathieu-Daudé
It belongs to the legacy API (the last user has been converted). Signed-off-by: Philippe Mathieu-Daudé --- include/hw/sd/sd.h | 1 - hw/sd/sd.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/hw/sd/sd.h b/include/hw/sd/sd.h index

[Qemu-devel] [PATCH v3 2/7] hw/sd/milkymist-memcard: split realize() out of SysBusDevice init()

2018-02-15 Thread Philippe Mathieu-Daudé
Create the SDCard in the realize() function. Suggested-by: Michael Walle Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Acked-by: Michael Walle --- hw/sd/milkymist-memcard.c | 28

[Qemu-devel] [PATCH v3 3/7] hw/sd/milkymist-memcard: expose a SDBus and connect the SDCard to it

2018-02-15 Thread Philippe Mathieu-Daudé
using the sdbus_*() API. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Acked-by: Michael Walle --- hw/sd/milkymist-memcard.c | 38 +- 1 file changed, 21 insertions(+), 17

[Qemu-devel] [PATCH v3 0/7] SDHCI: convert legacy devices to the SDBus API (part 6)

2018-02-15 Thread Philippe Mathieu-Daudé
Hi, Since v2: - pl181: remove legacy sd_set_cb() (Peter) Since v1: - rebased on /master (Peter sdcard reset() patches) - fix milkymist-mmc from previous seris using instance_init (Michael Walle) This series convert 3 devices using the legacy SDCard API to the SDBus API: - milkymist-mmc - pl181

[Qemu-devel] [PATCH 2/4] target/mips: convert to DisasContextBase

2018-02-15 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- target/mips/translate.c | 346 1 file changed, 175 insertions(+), 171 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index a133205..aefd729 100644 ---

[Qemu-devel] [PATCH 3/4] target/mips: use *ctx for DisasContext

2018-02-15 Thread Emilio G. Cota
No changes to the logic here; this is just to make the diff that follows easier to read. While at it, remove the unnecessary 'struct' in 'struct TranslationBlock'. Note that checkpatch complains with a false positive: ERROR: space prohibited after that '&' (ctx:WxW) #75: FILE:

[Qemu-devel] [PATCH 0/4] target/mips: translator loop conversion

2018-02-15 Thread Emilio G. Cota
Tested with Aurelien's debian wheezy image for mips64. The third patch is just to improve the diff--saves about 20% of diff lines in patch 4, but feel free to squash it with the latter. Thanks, Emilio

[Qemu-devel] [PATCH 1/4] target/mips: convert to DisasJumpType

2018-02-15 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- target/mips/translate.c | 186 +++- 1 file changed, 91 insertions(+), 95 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index d05ee67..a133205 100644 ---

[Qemu-devel] [PATCH 4/4] target/mips: convert to TranslatorOps

2018-02-15 Thread Emilio G. Cota
Notes: - DISAS_TOO_MANY replaces the former "break" in the translation loop. However, care must be taken not to overwrite a previous condition in is_jmp; that's why in translate_insn we first check is_jmp and return if it's != DISAS_NEXT. - Added an assert in translate_insn, before exiting

Re: [Qemu-devel] [PATCHv2 0/2] target/ppc: convert to generic translation loop

2018-02-15 Thread David Gibson
On Thu, Feb 15, 2018 at 02:51:47PM -0500, Emilio G. Cota wrote: > Changes from v1: > - Removed use of translator_loop_temp_check; call tcg_check_temp_count > directly. > - Add R-b's. Applied to ppc-for-2.12, thanks. > > Thanks, > > Emilio > -- David Gibson

Re: [Qemu-devel] [PULL 2/3] tests: Enable boot-serial-test for hppa

2018-02-15 Thread Philippe Mathieu-Daudé
On Thu, Feb 15, 2018 at 8:55 PM, Philippe Mathieu-Daudé wrote: > On 02/04/2018 07:23 PM, Richard Henderson wrote: >> Reviewed-by: Thomas Huth >> Signed-off-by: Richard Henderson >> --- >> tests/boot-serial-test.c | 1 + >>

Re: [Qemu-devel] [RFC PATCH] capstone: fix building using system package

2018-02-15 Thread miqlas
Hi, afaik (but not tested) pkgconfig --cflags reports /includes on linux, and it does the same on Haiku too. I'm not against to change our capstone recipe, but please, if you can check it on Linux and report it back, as i don't want to break other software. Thanks for the nice talk, guys!

Re: [Qemu-devel] [PULL 2/3] tests: Enable boot-serial-test for hppa

2018-02-15 Thread Philippe Mathieu-Daudé
On 02/04/2018 07:23 PM, Richard Henderson wrote: > Reviewed-by: Thomas Huth > Signed-off-by: Richard Henderson > --- > tests/boot-serial-test.c | 1 + > tests/Makefile.include | 2 ++ > 2 files changed, 3 insertions(+) > > diff --git

[Qemu-devel] [PATCH 1/3] target/sparc: convert to DisasJumpType

2018-02-15 Thread Emilio G. Cota
Signed-off-by: Emilio G. Cota --- target/sparc/translate.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 71e0853..730e25d 100644 --- a/target/sparc/translate.c +++

[Qemu-devel] [PATCH 3/3] target/sparc: convert to TranslatorOps

2018-02-15 Thread Emilio G. Cota
Notes: - Moved the cross-page check from the end of translate_insn to init_disas_context. Signed-off-by: Emilio G. Cota --- target/sparc/translate.c | 181 +++ 1 file changed, 88 insertions(+), 93 deletions(-) diff --git

[Qemu-devel] [PATCH v3 0/5] Initial write support for MTP objects

2018-02-15 Thread Bandan Das
v3: 3/5: Add a property that sets r/w to on/off (default:off) Restructure ifdefs 4/5: Sort the response codes 5/5: Use actual names for fields in the dataset Copy uint16_t to wchar_t and use wcstombs to get char type for filename v2: 3/5: Set mtp store flag to read

[Qemu-devel] [PATCH v3 2/5] usb-mtp: print parent path in IN_IGNORED trace fn

2018-02-15 Thread Bandan Das
Fix a possible null dereference when deleting a folder and its contents. An ignored event might be received for its contents after the parent folder is deleted which will return a null object. Signed-off-by: Bandan Das --- hw/usb/dev-mtp.c | 5 ++--- 1 file changed, 2

[Qemu-devel] [PATCH v3 3/5] usb-mtp: Support delete of mtp objects

2018-02-15 Thread Bandan Das
Write of existing objects by the initiator is acheived by making a temporary buffer with the new changes, deleting the old file and then writing a new file with the same name. Also, add a "readonly" property which needs to be set to false for deletion to work. Signed-off-by: Bandan Das

[Qemu-devel] [PATCH v3 1/5] usb-mtp: Add one more argument when building results

2018-02-15 Thread Bandan Das
The response to a SendObjectInfo consists of the storageid, parent obejct handle and the handle reserved for the new incoming object Signed-off-by: Bandan Das --- hw/usb/dev-mtp.c | 50 +++--- 1 file changed, 27 insertions(+), 23

[Qemu-devel] [PATCH v6 11/12] s390-ccw: set cp_receive mask only when needed and consume pending service irqs

2018-02-15 Thread Collin L. Walling
It is possible while waiting for multiple types of external interrupts that we might have pending irqs remaining between irq consumption and irq-type disabling. Those interrupts could potentially propagate to the guest after IPL completes and cause unwanted behavior. As it is today, the SCLP will

[Qemu-devel] [PATCH 2/3] target/sparc: convert to DisasContextBase

2018-02-15 Thread Emilio G. Cota
Notes: - pc and npc are left unmodified, since they can point to out-of-TB jump targets. - Got rid of last_pc in gen_intermediate_code(), using base.pc_next instead. Only update pc_next (1) on a breakpoint (so that tb->size includes the insn), and (2) after reading the current instruction

Re: [Qemu-devel] [PATCH 07/30] hw/arm: use the BYTE-based definitions

2018-02-15 Thread Philippe Mathieu-Daudé
On 02/15/2018 08:03 PM, Alistair Francis wrote: > On Thu, Feb 15, 2018 at 2:39 PM, Philippe Mathieu-Daudé > wrote: >> Hi Alistair, >> >> On 02/15/2018 07:31 PM, Alistair Francis wrote: >>> On Wed, Feb 14, 2018 at 8:28 PM, Philippe Mathieu-Daudé >>> wrote:

[Qemu-devel] [PATCH v6 08/12] s390-ccw: read stage2 boot loader data to find menu

2018-02-15 Thread Collin L. Walling
Read the stage2 boot loader data block-by-block. We scan the current block for the string "zIPL" to detect the start of the boot menu banner. We then load the adjacent blocks (previous block and next block) to account for the possibility of menu data spanning multiple blocks. Signed-off-by:

[Qemu-devel] [PATCH 0/3] target/sparc: translator loop conversion

2018-02-15 Thread Emilio G. Cota
Tested by booting a NetBSD guest. Thanks, Emilio

Re: [Qemu-devel] [PATCH v2 1/1] hw: register: Run post_write hook on reset

2018-02-15 Thread Alistair Francis
On Mon, Feb 5, 2018 at 10:44 AM, Alistair Francis wrote: > Ensure that the post write hook is called during reset. This allows us > to rely on the post write functions instead of having to call them from > the reset() function. > > Signed-off-by: Alistair Francis

[Qemu-devel] [PATCH v6 02/12] s390-ccw: refactor eckd_block_num to use CHS

2018-02-15 Thread Collin L. Walling
Add new cylinder/head/sector struct. Use it to calculate eckd block numbers instead of a BootMapPointer (which used eckd chs anyway). Signed-off-by: Collin L. Walling --- pc-bios/s390-ccw/bootmap.c | 28 ++-- pc-bios/s390-ccw/bootmap.h | 8

[Qemu-devel] [PATCH v3 5/5] usb-mtp: Advertise SendObjectInfo for write support

2018-02-15 Thread Bandan Das
This patch implements a dummy ObjectInfo structure so that it's easy to typecast the incoming data. If the metadata is valid, write_pending is set. Also, the incoming filename is utf-16, so, instead of depending on external libraries, just implement a simple function to get the filename

[Qemu-devel] [PATCH v6 12/12] s390-ccw: interactive boot menu for scsi

2018-02-15 Thread Collin L. Walling
Interactive boot menu for scsi. This follows a similar procedure as the interactive menu for eckd dasd. An example follows: s390x Enumerated Boot Menu. 3 entries detected. Select from index 0 to 2. Signed-off-by: Collin L. Walling Reviewed-by: Thomas Huth

[Qemu-devel] [PATCH v3 4/5] usb-mtp: Introduce write support for MTP objects

2018-02-15 Thread Bandan Das
Allow write operations on behalf of the initiator. The precursor to write is the sending of the write metadata that consists of the ObjectInfo dataset. This patch introduces a flag that is set when the responder is ready to receive write data based on a previous SendObjectInfo operation by the

[Qemu-devel] [PATCH v6 00/12] Interactive Boot Menu for DASD and SCSI Guests on s390x

2018-02-15 Thread Collin L. Walling
--- [v6] --- - cleaned up libc.c - expanded timeout field in QemuIPLB from 2 bytes to 4 bytes - we can now store the timeout value from command line as ms - sclp_set_write_mask now accepts two parameters: - receive_mask - send_mask - the write mask for receive is

[Qemu-devel] [PATCH v6 06/12] s390-ccw: parse and set boot menu options

2018-02-15 Thread Collin L. Walling
Set boot menu options for an s390 guest and store them in the iplb. These options are set via the QEMU command line option: -boot menu=on|off[,splash-time=X] or via the libvirt domain xml: Where X represents some positive integer representing milliseconds. Any value set

[Qemu-devel] [PATCH v6 07/12] s390-ccw: set up interactive boot menu parameters

2018-02-15 Thread Collin L. Walling
Reads boot menu flag and timeout values from the iplb and sets the respective fields for the menu. Signed-off-by: Collin L. Walling Reviewed-by: Thomas Huth --- pc-bios/s390-ccw/Makefile | 2 +- pc-bios/s390-ccw/main.c | 24

[Qemu-devel] [PATCH v6 10/12] s390-ccw: read user input for boot index via the SCLP console

2018-02-15 Thread Collin L. Walling
Implements an sclp_read function to capture input from the console and a wrapper function that handles parsing certain characters and adding input to a buffer. The input is checked for any erroneous values and is handled appropriately. A prompt will persist until input is entered or the timeout

Re: [Qemu-devel] [PATCH 3/9] nbd: BLOCK_STATUS for standard get_block_status function: server part

2018-02-15 Thread Eric Blake
On 02/15/2018 07:51 AM, Vladimir Sementsov-Ogievskiy wrote: Minimal realization: only one extent in server answer is supported. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/nbd.h | 33 ++ nbd/common.c| 10 ++ nbd/server.c|

[Qemu-devel] [PATCH v6 09/12] s390-ccw: print zipl boot menu

2018-02-15 Thread Collin L. Walling
When the boot menu options are present and the guest's disk has been configured by the zipl tool, then the user will be presented with an interactive boot menu with labeled entries. An example of what the menu might look like: zIPL v1.37.1-build-20170714 interactive boot menu. 0. default

[Qemu-devel] [PATCH v6 03/12] s390-ccw: refactor IPL structs

2018-02-15 Thread Collin L. Walling
ECKD DASDs have different IPL structures for CDL and LDL formats. The current Ipl1 and Ipl2 structs follow the CDL format, so we prepend "EckdCdl" to them. Boot info for LDL has been moved to a new struct: EckdLdlIpl1. Signed-off-by: Collin L. Walling Acked-by:

[Qemu-devel] [PATCH v6 05/12] s390-ccw: move auxiliary IPL data to separate location

2018-02-15 Thread Collin L. Walling
The s390-ccw firmware needs some information in support of the boot process which is not available on the native machine. Examples are the netboot firmware load address and now the boot menu parameters. While storing that data in unused fields of the IPL parameter block works, that approach could

[Qemu-devel] [PATCH v6 01/12] s390-ccw: refactor boot map table code

2018-02-15 Thread Collin L. Walling
Some ECKD bootmap code was using structs designed for SCSI. Even though this works, it confuses readability. Add a new BootMapTable struct to assist with readability in bootmap entry code. Also: - replace ScsiMbr in ECKD code with appropriate structs - fix read_block messages to reflect

Re: [Qemu-devel] [PATCH v4 10/20] sdcard: handle the Security Specification commands

2018-02-15 Thread Alistair Francis
On Thu, Feb 15, 2018 at 2:13 PM, Philippe Mathieu-Daudé wrote: > returning sd_illegal, since they are not implemented. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/sd/sd.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/hw/sd/sd.c

[Qemu-devel] [PATCH v6 04/12] s390-ccw: update libc

2018-02-15 Thread Collin L. Walling
Moved: memcmp from bootmap.h to libc.h (renamed from _memcmp) strlen from sclp.c to libc.h (renamed from _strlen) Added C standard functions: isdigit Added non C-standard function: uitoa atoui Signed-off-by: Collin L. Walling Acked-by: Christian

Re: [Qemu-devel] [PATCH 07/30] hw/arm: use the BYTE-based definitions

2018-02-15 Thread Alistair Francis
On Thu, Feb 15, 2018 at 2:39 PM, Philippe Mathieu-Daudé wrote: > Hi Alistair, > > On 02/15/2018 07:31 PM, Alistair Francis wrote: >> On Wed, Feb 14, 2018 at 8:28 PM, Philippe Mathieu-Daudé >> wrote: >>> It ease code review, unit is explicit. >>> >>>

Re: [Qemu-devel] [PATCH v5 3/6] bcm2836: Use the Cortex-A7 instead of Cortex-A15

2018-02-15 Thread Alistair Francis
On Thu, Feb 15, 2018 at 5:23 AM, Philippe Mathieu-Daudé wrote: > Hi Peter, > > On 02/01/2018 09:42 PM, Alistair Francis wrote: >> The BCM2836 uses a Cortex-A7 not a Cortex-A15. Update the device to use >> the correct CPU. >>

Re: [Qemu-devel] [PATCH 07/30] hw/arm: use the BYTE-based definitions

2018-02-15 Thread Philippe Mathieu-Daudé
Hi Alistair, On 02/15/2018 07:31 PM, Alistair Francis wrote: > On Wed, Feb 14, 2018 at 8:28 PM, Philippe Mathieu-Daudé > wrote: >> It ease code review, unit is explicit. >> >> Signed-off-by: Philippe Mathieu-Daudé > > The logic looks good. > > Did you do

Re: [Qemu-devel] [PATCH v4 19/20] sdcard: add a 'uhs' property, update the OCR register ACCEPT_SWITCH_1V8 bit

2018-02-15 Thread Alistair Francis
On Thu, Feb 15, 2018 at 2:13 PM, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Alistair > --- > hw/sd/sd.c | 4 > 1 file changed, 4 insertions(+) > > diff --git

Re: [Qemu-devel] [PATCH v4 11/20] sdcard: use a more descriptive label 'unimplemented_spi_cmd'

2018-02-15 Thread Alistair Francis
On Thu, Feb 15, 2018 at 2:13 PM, Philippe Mathieu-Daudé wrote: > Suggested-by: Alistair Francis > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Alistair > --- > hw/sd/sd.c | 22

[Qemu-devel] [PATCH v4 20/20] sdcard: add an enum for the SD PHY Spec version

2018-02-15 Thread Philippe Mathieu-Daudé
So far this device intends to model the Spec v1.10 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index b9429b06ca..d4565626ce

Re: [Qemu-devel] [PATCH v4 12/20] sdcard: handles more commands in SPI mode

2018-02-15 Thread Alistair Francis
On Thu, Feb 15, 2018 at 2:13 PM, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Alistair > --- > hw/sd/sd.c | 29 ++--- > 1 file changed, 26

[Qemu-devel] [PATCH v4 19/20] sdcard: add a 'uhs' property, update the OCR register ACCEPT_SWITCH_1V8 bit

2018-02-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index ada96f5574..b9429b06ca 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -93,6 +93,7 @@ struct SDState { /* Configurable properties */

Re: [Qemu-devel] [PATCH v13 30/30] sdhci: add Spec v4.2 register definitions

2018-02-15 Thread Alistair Francis
On Mon, Feb 12, 2018 at 8:08 PM, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis Alistair > --- > hw/sd/sdhci-internal.h | 9 + > hw/sd/sdhci.c | 14

[Qemu-devel] [PATCH v4 16/20] sdcard: simplify SD_SEND_OP_COND (ACMD41)

2018-02-15 Thread Philippe Mathieu-Daudé
replace switch(single case) -> if() Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 56 ++-- 1 file changed, 26 insertions(+), 30 deletions(-) diff --git

[Qemu-devel] [PATCH] virtio-balloon: add huge page allocation statistics

2018-02-15 Thread Jonathan Helman
qemu should read and report huge page allocation statistics exported in the following kernel patch: commit 01be4bb1aafeab73feba628c6dd120cd6647faae Author: Jonathan Helman Date: Thu Feb 15 10:59:03 2018 -0800 virtio_balloon: export huge page

[Qemu-devel] [PATCH v4 11/20] sdcard: use a more descriptive label 'unimplemented_spi_cmd'

2018-02-15 Thread Philippe Mathieu-Daudé
Suggested-by: Alistair Francis Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 0457f5214b..4f82638735 100644 ---

Re: [Qemu-devel] [PATCH v2] hw/char/stm32f2xx_usart: fix TXE/TC bit handling

2018-02-15 Thread Alistair Francis
On Tue, Feb 13, 2018 at 12:54 PM, Richard Braun wrote: > I/O currently being synchronous, there is no reason to ever clear the > SR_TXE bit. However the SR_TC bit may be cleared by software writing > to the SR register, so set it on each write. > > In addition, fix the reset

[Qemu-devel] [PATCH v4 10/20] sdcard: handle the Security Specification commands

2018-02-15 Thread Philippe Mathieu-Daudé
returning sd_illegal, since they are not implemented. Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 30acd04ad7..0457f5214b 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1551,6

[Qemu-devel] [PATCH v4 09/20] sdcard: handle CMD54 (SDIO)

2018-02-15 Thread Philippe Mathieu-Daudé
Linux uses it to poll the bus before polling for a card. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index

Re: [Qemu-devel] [PATCH 07/30] hw/arm: use the BYTE-based definitions

2018-02-15 Thread Alistair Francis
On Wed, Feb 14, 2018 at 8:28 PM, Philippe Mathieu-Daudé wrote: > It ease code review, unit is explicit. > > Signed-off-by: Philippe Mathieu-Daudé The logic looks good. Did you do this automatically? If so you should include the commands in the commit message.

[Qemu-devel] [PATCH v4 18/20] sdcard: implement the UHS-I SWITCH_FUNCTION entries (Spec v3)

2018-02-15 Thread Philippe Mathieu-Daudé
[based on a patch from Alistair Francis from qemu/xilinx tag xilinx-v2015.2] Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 148 + hw/sd/trace-events | 1 + 2 files changed, 127

[Qemu-devel] [PATCH v4 03/20] sdcard: fix the 'maximum data transfer rate' to 25MHz

2018-02-15 Thread Philippe Mathieu-Daudé
To comply with Spec v1.10 (and 2.00, 3.01): . TRAN_SPEED for current SD Memory Cards that field must be always 0_0110_010b (032h) which is equal to 25MHz - the mandatory maximum operating frequency of SD Memory Card. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair

[Qemu-devel] [PATCH v4 17/20] sdcard: add SD SEND_TUNING_BLOCK (CMD19)

2018-02-15 Thread Philippe Mathieu-Daudé
[based on a patch from Alistair Francis from qemu/xilinx tag xilinx-v2015.2] Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 24 1 file changed, 24

[Qemu-devel] [PATCH v4 00/20] SDCard: bugfixes, support UHS-I (part 5)

2018-02-15 Thread Philippe Mathieu-Daudé
Some refactors, few bugfixes, better SD/SPI support. With this series apply, machines can use SD cards in UHS-I mode. (mostly imported from Alistair Francis work) MMC mode split out for another series, so UHS enabled MMC cards are still not usable: kernel: mmc0: SDHCI controller on PCI

[Qemu-devel] [PATCH v4 14/20] sdcard: warn if host uses an incorrect address for APP CMD (CMD55)

2018-02-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index c2f01a5fa3..5827379d0f 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1395,6

[Qemu-devel] [PATCH v4 15/20] sdcard: simplify SEND_IF_COND (CMD8)

2018-02-15 Thread Philippe Mathieu-Daudé
replace switch(single case) -> if() Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index

[Qemu-devel] [PATCH v4 07/20] sdcard: use the correct masked OCR in the R3 reply

2018-02-15 Thread Philippe Mathieu-Daudé
use the registerfields API to access the OCR register Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/hw/sd/sd.c

[Qemu-devel] [PATCH v2 1/3] ppc4xx: Add device models found in PPC440 core SoCs

2018-02-15 Thread BALATON Zoltan
These devices are found in newer SoCs based on 440 core e.g. the 460EX (http://www.embeddeddeveloper.com/assets/processors/amcc/datasheets/ PP460EX_DS2063.pdf) Signed-off-by: BALATON Zoltan --- v2: - Rebased to latest changes on master - Removed printfs hw/ppc/ppc440.h

[Qemu-devel] [PATCH v4 13/20] sdcard: check the card is in correct state for APP CMD (CMD55)

2018-02-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 8 1 file changed, 8 insertions(+) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 0ecb446fdb..c2f01a5fa3 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1390,6

[Qemu-devel] [PATCH v4 06/20] sdcard: simplify using the ldst API

2018-02-15 Thread Philippe Mathieu-Daudé
the code is easier to review/refactor. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 38 +- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/hw/sd/sd.c

[Qemu-devel] [PATCH v4 09/11] sdcard: display protocol used when tracing

2018-02-15 Thread Philippe Mathieu-Daudé
put the function in sdmmc-common.c since we will reuse it in hw/sd/core.c Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 14 ++ hw/sd/trace-events | 8 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c

[Qemu-devel] [PATCH v4 01/20] sdcard: Don't always set the high capacity bit

2018-02-15 Thread Philippe Mathieu-Daudé
Don't set the high capacity bit by default as it will be set if required in the sd_set_csd() function. [based on a patch from Alistair Francis and Peter Ogden from qemu/xilinx tag xilinx-v2015.4] Signed-off-by: Philippe Mathieu-Daudé

[Qemu-devel] [PATCH v4 12/20] sdcard: handles more commands in SPI mode

2018-02-15 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sd.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 4f82638735..0ecb446fdb 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -1390,9 +1390,11 @@ static

[Qemu-devel] [PATCH v4 05/20] sdcard: remove commands from unsupported old MMC specification

2018-02-15 Thread Philippe Mathieu-Daudé
This device does not model MMCA Specification previous to v4.2 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Alistair Francis --- hw/sd/sd.c | 33 - 1 file changed, 33 deletions(-) diff --git a/hw/sd/sd.c

[Qemu-devel] [PATCH v4 08/11] sdcard: display command name when tracing CMD/ACMD

2018-02-15 Thread Philippe Mathieu-Daudé
put the function in sdmmc-common.c since we will reuse it in hw/sd/core.c Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdmmc-internal.h | 3 +++ hw/sd/sd.c | 13 + hw/sd/sdmmc-common.c | 72 ++

[Qemu-devel] [PATCH v2 0/3] Sam460ex emulation

2018-02-15 Thread BALATON Zoltan
Remaining patches for Sam460ex emulation. The original cover letter with more details is here: http://lists.nongnu.org/archive/html/qemu-ppc/2017-08/msg00112.html We'll need to also add binaries for firmware (customised u-boot version) and dtb but I'm not sure how to submit those. Current

  1   2   3   4   >