Re: [Qemu-devel] [PATCH qemu v3] RFC: ppc/spapr: Receive and store device tree blob from SLOF

2017-10-16 Thread Alexey Kardashevskiy
On 16/10/17 20:36, David Gibson wrote: > On Mon, Oct 16, 2017 at 04:20:04PM +1100, Alexey Kardashevskiy wrote: >> SLOF receives a device tree and updates it with various properties >> before switching to the guest kernel and QEMU is not aware of any changes >> made by SLOF. Since there is no real

Re: [Qemu-devel] [PATCH qemu v2 REPOST] pci: Initialize pci_dev->name before use

2017-10-16 Thread Alexey Kardashevskiy
On 15/10/17 19:01, Peter Xu wrote: > On Sun, Oct 15, 2017 at 03:24:52PM +1100, Alexey Kardashevskiy wrote: >> This moves pci_dev->name initialization earlier so >> pci_dev->bus_master_as could get a name instead of an empty string. > > Or use "name" instead of "pci_dev->name" when do

[Qemu-devel] [PATCH v4 10/10] qemu-iotests: add support for running multi-threaded iotests

2017-10-16 Thread Jeff Cody
This adds support for running qemu-iotests in an arbitrary number of sub-processes, so that tests can be run in parallel. This necessarily changes the output format, although it should still be familiar. If you run in a single thread, the output format will largely be the same as before this

[Qemu-devel] [PATCH v4 09/10] qemu-iotests: add option to save temp files on error

2017-10-16 Thread Jeff Cody
Now that ./check takes care of cleaning up after each tests, it can also selectively not clean up. Add option to leave all output from tests intact if that test encountered an error. Signed-off-by: Jeff Cody --- tests/qemu-iotests/check | 13 - 1 file changed, 12

[Qemu-devel] [PATCH v4 02/10] qemu-iotests: set TEST_DIR to a unique dir for each test

2017-10-16 Thread Jeff Cody
Right now, all qemu-iotests output data into the same scratch directory, and so each test needs to be responsible for cleaning up its own files. Have each test use 'scratch/$seq' as its temp directory, so the check script can do simple cleanup of removing the whole temporary directory.

[Qemu-devel] [PATCH v4 03/10] qemu-iotests: automatically clean up bash protocol servers

2017-10-16 Thread Jeff Cody
For bash tests, this allows 'check' to reap all launch protocol servers / processes, after a test has finished running. Signed-off-by: Jeff Cody --- tests/qemu-iotests/check | 13 +++ tests/qemu-iotests/common.rc | 93 +--- 2

[Qemu-devel] [PATCH v4 07/10] qemu-iotests: run python tests in own subdirectories

2017-10-16 Thread Jeff Cody
This adds the framework to iotests.py to run python iotests in a subdirectory structure, structured like so: scratch/ ├── TestNumber │   ├── TestClassName │   │   ├── test_method_name Prior to this patch, tests were run in a test subdirectory from previous patches in the series, like this:

[Qemu-devel] [PATCH v4 04/10] qemu-iotests: remove file cleanup from bash tests

2017-10-16 Thread Jeff Cody
All files for a given test are now self-contained in a subdirectory, and therefore the "./check" script can do all file-related cleanup without any help. This removes file cleanups from the bash tests. The only cleanup left is whatever is needed to kill any spawned processes; e.g. _cleanup_qemu.

[Qemu-devel] [PATCH v4 00/10] qemu-iotests improvements

2017-10-16 Thread Jeff Cody
Previous series subject: "qemu-iotests: place output in unique dir" Significant changes from v3. Highlights of the major changes from v3: * Python tests are properly run in hierarchial sub-directories now (Thanks Stefan, John) * Protocol servers are cleaned up automatically

[Qemu-devel] [PATCH v4 05/10] qemu-iotests: change qemu pid and fd tracking / cleanup

2017-10-16 Thread Jeff Cody
So that later patches can cleanup running qemu processes called from different subshells, track resources to cleanup in pid and fd list files. In subsquent patches, ./check will kill all QEMU processes launched with the common.qemu framework, and the tests will not need to cleanup manually

[Qemu-devel] [PATCH v4 06/10] qemu-iotests: make ./check automatically reap QEMU processes

2017-10-16 Thread Jeff Cody
Check will now take care of cleaning up all QEMU processes started from bash tests using the common.qemu framework. This also paves the way to added another check option to keep QEMU processes around, in the case of a failed test. Signed-off-by: Jeff Cody ---

[Qemu-devel] [PULL 33/34] spapr_pci: fail gracefully with non-pseries machine types

2017-10-16 Thread David Gibson
From: Greg Kurz QEMU currently crashes when the user tries to add an spapr-pci-host-bridge on a non-pseries machine: $ qemu-system-ppc64 -M ppce500 -device spapr-pci-host-bridge,index=1 hw/ppc/spapr_pci.c:1535:spapr_phb_realize: Object 0x1003dacae60 is not an instance of type

[Qemu-devel] [PULL 25/34] ppc: spapr: use generic cpu_model parsing

2017-10-16 Thread David Gibson
From: Igor Mammedov use generic cpu_model parsing introduced by (6063d4c0f vl.c: convert cpu_model to cpu type and set of global properties before machine_init()) it allows to: * replace sPAPRMachineClass::tcg_default_cpu with MachineClass::default_cpu_type * drop

[Qemu-devel] [PATCH v4 01/10] qemu-iotests: refuse to run if TEST_DIR contains spaces

2017-10-16 Thread Jeff Cody
Currently, not all qemu-iotests work if TEST_DIR has spaces, and they also might not be safe. Refuse to run if TEST_DIR in this case, at least until all tests are fixed sometime in the future. Signed-off-by: Jeff Cody --- tests/qemu-iotests/check | 8 1 file changed,

[Qemu-devel] [PULL 32/34] spapr: Correct RAM size calculation for HPT resizing

2017-10-16 Thread David Gibson
In order to prevent the guest from forcing the allocation of large amounts of qemu memory (or host kernel memory, in the case of KVM HV), we limit the size of Hashed Page Table (HPT) it is allowed to allocated, based on its RAM size. However, the current calculation is not correct: it only adds

[Qemu-devel] [PULL 29/34] ppc: pnv: define core types statically

2017-10-16 Thread David Gibson
From: Igor Mammedov pnv core type definition doesn't have any fields that require it to be defined at runtime. So replace code that fills in TypeInfo at runtime with static TypeInfo array that does the same at complie time. Signed-off-by: Igor Mammedov

[Qemu-devel] [PULL 30/34] ppc: pnv: drop PnvChipClass::cpu_model field

2017-10-16 Thread David Gibson
From: Igor Mammedov deduce core type directly from chip type instead of maintaining type mapping in PnvChipClass::cpu_model. Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Gibson

[Qemu-devel] [PULL 28/34] ppc: pnv: drop PnvCoreClass::cpu_oc field

2017-10-16 Thread David Gibson
From: Igor Mammedov deduce cpu type directly from core type instead of maintaining type mapping in PnvCoreClass::cpu_oc and doing extra cpu_model parsing in pnv_core_class_init() Signed-off-by: Igor Mammedov Reviewed-by: Philippe Mathieu-Daudé

[Qemu-devel] [PULL 31/34] ppc: pnv: consolidate type definitions and batch register them

2017-10-16 Thread David Gibson
From: Igor Mammedov Use a new DEFINE_TYPES() helper to simplify type registration Signed-off-by: Igor Mammedov Reviewed-by: Cédric Le Goater Acked-by: David Gibson Signed-off-by: David Gibson

[Qemu-devel] [PULL 17/34] ppc: 40p/prep: replace cpu_model with cpu_type

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/prep.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff

[Qemu-devel] [PULL 15/34] ppc: replace cpu_model with cpu_type on ref405ep, taihu boards

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/ppc405_uc.c | 6 -- hw/ppc/ppc4xx_devs.c | 4 ++-- 2 files changed, 6

[Qemu-devel] [PULL 20/34] ppc: spapr: define core types statically

2017-10-16 Thread David Gibson
From: Igor Mammedov spapr core type definition doesn't have any fields that require it to be defined at runtime. So replace code that fills in TypeInfo at runtime with static TypeInfo array that does the same at complie time. Signed-off-by: Igor Mammedov

[Qemu-devel] [PULL 26/34] ppc: pnv: use generic cpu_model parsing

2017-10-16 Thread David Gibson
From: Igor Mammedov use common cpu_model prasing in vl.c and set default cpu_model using generic MachineClass::default_cpu_type. Beside of switching to generic infrastructure it solves several issues. * ppc_cpu_class_by_name() is used to deal with lower/upper case and

[Qemu-devel] [PULL 19/34] ppc: move '-cpu foo, compat=xxx' parsing into ppc_cpu_parse_featurestr()

2017-10-16 Thread David Gibson
From: Igor Mammedov there is a dedicated callback CPUClass::parse_features which purpose is to convert -cpu features into a set of global properties AND deal with compat/legacy features that couldn't be directly translated into CPU's properties. Create ppc variant of it

[Qemu-devel] [PULL 09/34] qom: introduce type_register_static_array()

2017-10-16 Thread David Gibson
From: Igor Mammedov it will help to remove code duplication of registration static types in places that have open coded loop to perform batch type registering. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Reviewed-by:

[Qemu-devel] [PULL 23/34] ppc: spapr: use cpu model names as tcg defaults instead of aliases

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Reviewed-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr.c | 4 ++-- 1 file changed, 2

[Qemu-devel] [PULL 27/34] ppc: pnv: normalize core/chip type names

2017-10-16 Thread David Gibson
From: Igor Mammedov typically for cpus/core type names following convention is used new_type_prefix-superclass_typename make PNV core/chip to follow common convention. Signed-off-by: Igor Mammedov Reviewed-by: Cédric Le Goater

[Qemu-devel] [PULL 24/34] ppc: move ppc_cpu_lookup_alias() before its first user

2017-10-16 Thread David Gibson
From: Igor Mammedov next commit will drop ppc_cpu_lookup_alias() declaration from header and make it static which will break its last user ppc_cpu_class_by_name() since ppc_cpu_class_by_name() defined before ppc_cpu_lookup_alias(). To avoid this move ppc_cpu_lookup_alias()

[Qemu-devel] [PULL 34/34] spapr_cpu_core: rewrite machine type sanity check

2017-10-16 Thread David Gibson
From: Greg Kurz This makes the code easier to understand and it is consistent with what we already do for PHBs. Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr_cpu_core.c | 12 1 file changed, 8

[Qemu-devel] [PULL 21/34] ppc: spapr: use cpu type name directly

2017-10-16 Thread David Gibson
From: Igor Mammedov replace sPAPRCPUCoreClass::cpu_class with cpu type name since it were needed just to get that at points it were accessed. Signed-off-by: Igor Mammedov Reviewed-by: Greg Kurz Acked-by: David Gibson

[Qemu-devel] [PULL 18/34] ppc: spapr: replace ppc_cpu_parse_features() with cpu_parse_cpu_model()

2017-10-16 Thread David Gibson
From: Igor Mammedov ppc_cpu_parse_features() is doing practically the same thing as generic cpu_parse_cpu_model(). So remove duplicated impl. and reuse generic one. Signed-off-by: Igor Mammedov Reviewed-by: Greg Kurz Acked-by: David

[Qemu-devel] [PULL 06/34] target/ppc: Add POWER9 DD2.0 model information

2017-10-16 Thread David Gibson
At the moment the only POWER9 model which is listed in qemu is v1.0 (aka "DD1"). This is a very early (read, buggy) version which will never be released to the public - it was included in qemu only for the convenience of those doing bringup on the early silicon. For bonus points, we actually had

[Qemu-devel] [PULL 22/34] ppc: spapr: register 'host' core type along with the rest of core types

2017-10-16 Thread David Gibson
From: Igor Mammedov consolidate 'host' core type registration by moving it from KVM specific code into spapr_cpu_core.c, similar like it's done in x86 target. Signed-off-by: Igor Mammedov Reviewed-by: Greg Kurz Acked-by: David Gibson

[Qemu-devel] [PULL 11/34] ppc: mpc8544ds/e500plat: use generic cpu_model parsing

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/e500.c | 8 +--- hw/ppc/e500plat.c | 1 + hw/ppc/mpc8544ds.c | 2 ++ 3

[Qemu-devel] [PULL 16/34] ppc: virtex-ml507: replace cpu_model with cpu_type

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/virtex_ml507.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-)

[Qemu-devel] [PULL 13/34] ppc: mac_oldworld: use generic cpu_model parsing

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/mac_oldworld.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[Qemu-devel] [PULL 08/34] hw/ppc/spapr.c: abort unplug_request if previous unplug isn't done

2017-10-16 Thread David Gibson
From: Daniel Henrique Barboza LMB removal is completed only when the spapr_lmb_release callback is called after all DRCs of the dimm are detached. During this time, it is possible that a unplug request for the same dimm arrives, trying to detach DRCs that were

[Qemu-devel] [PULL 00/34] ppc-for-2.11 queue 20171017

2017-10-16 Thread David Gibson
The following changes since commit c5bbcaa4b7c0f8a322bebe9ec563560178a68b55: Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging (2017-10-16 17:29:16 +0100) are available in the git repository at: git://github.com/dgibson/qemu.git tags/ppc-for-2.11-20171017 for you

[Qemu-devel] [PULL 10/34] qom: add helper macro DEFINE_TYPES()

2017-10-16 Thread David Gibson
From: Igor Mammedov DEFINE_TYPES() will help to simplify following routine patterns: static void foo_register_types(void) { type_register_static(_type_info); type_register_static(_type_info); ... } type_init(foo_register_types) or static void

[Qemu-devel] [PULL 14/34] ppc: bamboo: use generic cpu_model parsing

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/ppc440_bamboo.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-)

[Qemu-devel] [PULL 12/34] ppc: mac_newworld: use generic cpu_model parsing

2017-10-16 Thread David Gibson
From: Igor Mammedov Signed-off-by: Igor Mammedov Acked-by: David Gibson Signed-off-by: David Gibson --- hw/ppc/mac_newworld.c | 15 ++- 1 file changed, 6 insertions(+), 9

[Qemu-devel] [PULL 01/34] macio: add missing registers to VMStateDescription

2017-10-16 Thread David Gibson
From: Mark Cave-Ayland Commit 4f7265f "ppc/ide/macio: Add missing registers" added two extra macio registers but forgot to add them to the corresponding VMStateDescription. The version number is bumped accordingly, although this will have little effect given that

[Qemu-devel] [PULL 07/34] target/ppc: Fix carry flag setting for shift algebraic instructions

2017-10-16 Thread David Gibson
From: Sandipan Das For POWER ISA v3.0, the XER bit CA32 needs to be set by the shift right algebraic instructions whenever the CA bit is to be set. This change affects the following instructions: * Shift Right Algebraic Word (sraw[.]) * Shift Right Algebraic Word

[Qemu-devel] [PULL 02/34] hw/ppc: use 0 instead of fdt_path_offset(fdt, "/")

2017-10-16 Thread David Gibson
From: Greg Kurz The offset of the root node is guaranteed to be 0. This doesn't fix anything, it's just trivial cleanup of the two remaining places where this was done under hw/ppc. Signed-off-by: Greg Kurz Reviewed-by: Cédric Le Goater

[Qemu-devel] [PULL 03/34] target/ppc: Remove unused PPC 460 and 460F definitions

2017-10-16 Thread David Gibson
From: Thomas Huth We don't have any 460 or 460F CPUs in QEMU, so the init functions are just dead code. Let's simply remove them (translate_init.c is already big enough without them). Signed-off-by: Thomas Huth Signed-off-by: David Gibson

[Qemu-devel] [PULL 04/34] spapr: fix OF word name in comment

2017-10-16 Thread David Gibson
From: Greg Kurz Signed-off-by: Greg Kurz Signed-off-by: David Gibson --- hw/ppc/spapr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 352ff3d614..b284e0b9d4 100644 ---

[Qemu-devel] [PULL 05/34] spapr: sanity check size of the CAS buffer

2017-10-16 Thread David Gibson
From: Greg Kurz The CAS buffer is provided by SLOF. A broken SLOF could pass a silly size: either smaller than the diff header, in which case the current code will try to allocate 16 Exabytes of memory and g_malloc0() will abort, or bigger than the maximum memory provisioned for

Re: [Qemu-devel] host physical address width issues/questions for x86_64

2017-10-16 Thread Peter Xu
On Mon, Oct 16, 2017 at 10:02:25AM -0700, Prasad Singamsetty wrote: > > > On 10/14/2017 8:53 PM, Peter Xu wrote: > >On Fri, Oct 13, 2017 at 11:14:03AM -0600, Alex Williamson wrote: > >>On Fri, 13 Oct 2017 18:01:44 +0100 > >>"Dr. David Alan Gilbert" wrote: > >> > >>>* Prasad

Re: [Qemu-devel] [PATCH 0/4] Optimize COLO-compare performance

2017-10-16 Thread Jason Wang
On 2017年10月13日 14:32, Mao Zhongyi wrote: In this series, adjust the way that the packet are queued and compared to improve the colo net performence. Cc: Zhang Chen Cc: Li Zhijian Cc: Jason Wang Mao Zhongyi (4):

Re: [Qemu-devel] [RFC PATCH 00/30] v8.2 half-precision support (work-in-progress)

2017-10-16 Thread Richard Henderson
On 10/13/2017 09:24 AM, Alex Bennée wrote: > SoftFloat > = > > Previously I had pondered if switching to the newer SoftFloat3 would > be a worthwhile. While the upstream project is certainly open to > accepting patches it would be a slow process given the changes we've > made over the

Re: [Qemu-devel] [RFC PATCH 23/30] softfloat: add float16_rem and float16_muladd (!CHECK)

2017-10-16 Thread Richard Henderson
On 10/13/2017 09:24 AM, Alex Bennée wrote: > +float16 float16_rem(float16 a, float16 b, float_status *status) > +{ > +flag aSign, zSign; > +int aExp, bExp, expDiff; > +uint32_t aSig, bSig; > +uint32_t q; > +uint64_t aSig64, bSig64, q64; > +uint32_t alternateASig; > +

[Qemu-devel] [Bug 1723927] Re: Linux or windows guest boot failed by uefi on CPU of Intel Xeon X5675

2017-10-16 Thread chan
I success to capture the OVMF debug log. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1723927 Title: Linux or windows guest boot failed by uefi on CPU of Intel Xeon X5675 Status in QEMU:

[Qemu-devel] [Bug 1723927] Re: Linux or windows guest boot failed by uefi on CPU of Intel Xeon X5675

2017-10-16 Thread chan
Ersek, thank you very much! I set up correctly in "/etc/libvirt/qemu.conf", so command -bios /usr/share/qemu-kvm/OVMF_CODE.fd also boot UEFI guest. Current, my question only in the platform in server of ProLiant BL460c G7, the same ovmf firmware. How can capture the OVMF debug log? I use your

Re: [Qemu-devel] using which notification for guest about GHES error

2017-10-16 Thread gengdongjiu
Hi James, On 2017/10/17 0:59, James Morse wrote: >>> Do we really care about old guests in this case? > I think the scenario here is the host kernel has some RAS support, Qemu has > RAS > support and has advertised its CPER regions via the HEST, but the guest > doesn't > doesn't support RAS.

Re: [Qemu-devel] [RFC PATCH 22/30] target/arm/translate-a64.c: add FP16 FAGCT to AdvSIMD 3 Same

2017-10-16 Thread Richard Henderson
On 10/13/2017 09:24 AM, Alex Bennée wrote: > -/* uint32_t HELPER(advsimd_acgt_f16)(float16 a, float16 b, void *fpstp) */ > -/* { */ > -/* float_status *fpst = fpstp; */ > -/* float16 f0 = float16_abs(a); */ > -/* float16 f1 = float16_abs(b); */ > -/* return -float16_lt(f1, f0,

Re: [Qemu-devel] [RFC PATCH 21/30] target/arm/translate-a64: add FP16 2-reg misc compare (zero)

2017-10-16 Thread Richard Henderson
On 10/13/2017 09:24 AM, Alex Bennée wrote: > @@ -7792,7 +7793,7 @@ static void handle_2misc_fcmp_zero(DisasContext *s, int > opcode, > swap = true; > /* fall through */ > case 0x2c: /* FCMGT (zero) */ > -genfn = gen_helper_neon_cgt_f32; > +

[Qemu-devel] [PATCH v2 36/39] i386/pc: move pvpanic.c from hw/misc/ to hw/i386/

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- default-configs/i386-softmmu.mak | 1 - default-configs/x86_64-softmmu.mak | 1 - hw/{misc => i386}/pvpanic.c| 0 hw/i386/Makefile.objs | 2 +- hw/misc/Makefile.objs | 1 - 5 files changed, 1

[Qemu-devel] [PATCH v2 35/39] i386/pc: move vmport.c from hw/misc/ to hw/i386/

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- default-configs/i386-softmmu.mak | 1 - default-configs/x86_64-softmmu.mak | 1 - hw/{misc => i386}/vmport.c | 0 hw/i386/Makefile.objs | 1 + hw/misc/Makefile.objs | 2 -- 5 files changed, 1

[Qemu-devel] [PATCH v2 34/39] misc: drop old i386 dependency

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/char/debugcon.c | 1 - hw/intc/lm32_pic.c | 1 - hw/moxie/moxiesim.c | 1 - hw/sparc/sun4m.c| 1 - hw/watchdog/wdt_ib700.c | 1 - 5 files changed, 5 deletions(-) diff

[Qemu-devel] [PATCH v2 32/39] hw/timer/mc146818: rename rtc_init() -> mc146818_rtc_init()

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau Reviewed-by: David Gibson --- include/hw/timer/mc146818rtc.h | 3 ++- hw/alpha/dp264.c | 2 +- hw/i386/pc.c | 2 +-

Re: [Qemu-devel] [PATCH 27/34] hw/pci: declare pci_nic_init_nofail() in "hw/net/pci.h"

2017-10-16 Thread Philippe Mathieu-Daudé
Hi Marcel, >> It seems the patch is doing much more than >> what is mentioned in the subject. >> [...] >> Can you add a short explanation on how the split >> helps removing i386/pc dependency from non-PC world? >> - it is not straight forward, at least for me. > > I thought there was an old

[Qemu-devel] [PATCH v2 31/39] hw/input/i8042: extract pckbd and vmmouse API from hw/i386/pc.h

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau Acked-by: David Gibson --- include/hw/i386/pc.h | 11 --- include/hw/input/i8042.h | 30 ++ hw/alpha/dp264.c |

[Qemu-devel] [PATCH v2 33/39] hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c

2017-10-16 Thread Philippe Mathieu-Daudé
- add "hw/net/ne2000-isa.h" - remove the old i386 dependency Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau Acked-by: David Gibson --- hw/net/ne2000.h | 3 +++ include/hw/i386/pc.h|

Re: [Qemu-devel] [PATCH v2 33/39] hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c

2017-10-16 Thread Philippe Mathieu-Daudé
> hw/net/ne2000.h | 3 +++ > include/hw/net/ne2000-isa.h | 33 + I used "ne2000-isa.h" to match the source file, but the TYPE name is "ne2k-isa", I'm not sure we care which one is better. > hw/net/ne2000-isa.c | 6 ++ > hw/net/ne2000.c

[Qemu-devel] [PATCH v2 28/39] hw/acpi: ACPI_PM_* defines are not restricted to i386 arch

2017-10-16 Thread Philippe Mathieu-Daudé
this allows to remove the old i386/pc dependency on acpi/core. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/acpi/acpi.h | 12 include/hw/i386/pc.h | 13 - hw/acpi/core.c | 1 - 3 files changed, 12 insertions(+), 14 deletions(-) diff

[Qemu-devel] [PATCH v2 30/39] hw/display/vga: remove the old i386/pc dependency

2017-10-16 Thread Philippe Mathieu-Daudé
move public API to "hw/display/vga.h" and private registers to "hw/display/vga_int_regs.h" Signed-off-by: Philippe Mathieu-Daudé --- hw/display/vga_int.h | 3 ++- hw/display/{vga.h => vga_int_regs.h} | 0 include/hw/display/vga.h | 25

[Qemu-devel] [PATCH v2 39/39] hw/dma/i8257: rename DMA_init() to i8257_dma_init()

2017-10-16 Thread Philippe Mathieu-Daudé
- move the header from hw/isa/ to hw/dma/ - remove the old i386/pc dependency Signed-off-by: Philippe Mathieu-Daudé --- include/hw/{isa/i8257.h => dma/i8257_dma.h} | 6 ++ include/hw/isa/isa.h| 2 -- hw/dma/i82374.c | 3

[Qemu-devel] [PATCH v2 27/39] hw/unicore32: restrict hw addr defines to source file

2017-10-16 Thread Philippe Mathieu-Daudé
and drop unused #includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- include/hw/unicore32/puv3.h | 10 -- hw/unicore32/puv3.c | 16 ++-- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git

[Qemu-devel] [PATCH v2 38/39] hw/dma/i82374: avoid multiple creations on the same ISA bus

2017-10-16 Thread Philippe Mathieu-Daudé
$ ./ppc64-softmmu/qemu-system-ppc64 -S -machine 40p,accel=tcg -device i82374 qemu-system-ppc64: -device i82374: DMA already initialized on ISA bus Reported-by: Eduardo Otubo Suggested-by: Eduardo Habkost Signed-off-by: Philippe Mathieu-Daudé

[Qemu-devel] [PATCH v2 25/39] hw/tpm: remove old i386 dependency

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Stefan Berger --- hw/tpm/tpm_passthrough.c | 1 - hw/tpm/tpm_tis.c | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/tpm/tpm_passthrough.c b/hw/tpm/tpm_passthrough.c index

[Qemu-devel] [PATCH v2 26/39] hw/virtio-balloon: remove old i386 dependency

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/virtio/virtio-balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 37cde38982..14e08d20d0 100644 ---

[Qemu-devel] [PATCH v2 24/39] hw/i2c: remove old i386 dependency

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/i2c/pm_smbus.c | 1 - hw/i2c/smbus_ich9.c | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/i2c/pm_smbus.c b/hw/i2c/pm_smbus.c index 6fc3923f56..a044dd1b27 100644 ---

[Qemu-devel] [PATCH v2 37/39] i386/pc: extract port92 from pc.c

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 3 +- hw/i386/pc.c | 126 ++ hw/i386/port92.c | 122 hw/i386/Makefile.objs | 2 +- 4 files

[Qemu-devel] [PATCH v2 22/39] hw/ide: remove old i386 dependency

2017-10-16 Thread Philippe Mathieu-Daudé
and remove a duplicated include Signed-off-by: Philippe Mathieu-Daudé Acked-by: John Snow --- hw/ide/ahci.c | 1 - hw/ide/cmd646.c | 1 - hw/ide/core.c | 3 +-- hw/ide/ich.c| 1 - hw/ide/isa.c| 1 - hw/ide/microdrive.c | 1 -

[Qemu-devel] [PATCH v2 18/39] numa: remove unused #include

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- numa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/numa.c b/numa.c index 100a67febf..ebc553b5d9 100644 --- a/numa.c +++ b/numa.c @@ -29,7 +29,6 @@ #include "qemu/bitmap.h"

[Qemu-devel] [PATCH v2 23/39] hw/ipmi: remove old i386 dependency

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Corey Minyard Tested-by: Corey Minyard --- hw/ipmi/isa_ipmi_bt.c | 1 - hw/ipmi/isa_ipmi_kcs.c | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/ipmi/isa_ipmi_bt.c

[Qemu-devel] [PATCH v2 20/39] amd_iommu: avoid needless includes in header file

2017-10-16 Thread Philippe Mathieu-Daudé
instead move them to the source file Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/i386/amd_iommu.h | 5 - hw/i386/amd_iommu.c | 5 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/i386/amd_iommu.h

[Qemu-devel] [PATCH v2 29/39] hw/timer/i8254: rename pit_init() -> i8254_pit_init()

2017-10-16 Thread Philippe Mathieu-Daudé
and remove the old i386/pc dependency Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau --- include/hw/timer/i8254.h | 5 +++-- include/hw/timer/i8254_internal.h | 2 +- hw/alpha/dp264.c | 2 +- hw/i386/pc.c

[Qemu-devel] [PATCH v2 21/39] misc: remove old i386 dependency

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Anthony PERARD --- hw/audio/pcspk.c| 1 - hw/i386/kvm/pci-assign.c| 1 - hw/i386/pci-assign-load-rom.c | 1 -

[Qemu-devel] [PATCH v2 09/39] hw: remove "qemu/osdep.h" from header files

2017-10-16 Thread Philippe Mathieu-Daudé
applied using ./scripts/clean-includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Corey Minyard Tested-by: Corey Minyard --- include/hw/acpi/ipmi.h | 1 -

[Qemu-devel] [PATCH v2 19/39] hw/ssi/aspeed_smc: remove unused #include

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- hw/ssi/aspeed_smc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c index 992617fd3a..5059396bc6 100644 --- a/hw/ssi/aspeed_smc.c +++

[Qemu-devel] [PATCH v2 17/39] misc: avoid "include/" in include path

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- hw/input/adb.c | 2 +- hw/ssi/aspeed_smc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/input/adb.c b/hw/input/adb.c index fcca3a8eb9..924a3f9fd5

[Qemu-devel] [PATCH v2 16/39] nios2: remove duplicated includes (in code commented out)

2017-10-16 Thread Philippe Mathieu-Daudé
applied using ./scripts/clean-includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- target/nios2/cpu.h | 1 - disas/nios2.c| 3 --- hw/nios2/boot.c | 1 - target/nios2/helper.c| 5 +

[Qemu-devel] [PATCH v2 07/39] MAINTAINERS: add missing entry for include/hw/net/

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 06ec24912e..ddaba2702c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -982,6 +982,7 @@

[Qemu-devel] [PATCH v2 15/39] i386/hax: remove duplicated include

2017-10-16 Thread Philippe Mathieu-Daudé
this file in include in "target/i386/hax-i386.h": #ifdef CONFIG_WIN32 #include "target/i386/hax-windows.h" #endif which guaranty than sysemu/os-win32.h is previously included (CONFIG_WIN32) Suggested-by: Peter Maydell Signed-off-by: Philippe Mathieu-Daudé

[Qemu-devel] [PATCH v2 13/39] ppc: remove duplicated includes

2017-10-16 Thread Philippe Mathieu-Daudé
applied using ./scripts/clean-includes not needed since 7ebaf795560 Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Acked-by: David Gibson --- hw/ppc/spapr_hcall.c | 1 - target/ppc/kvm.c | 3 --- 2

[Qemu-devel] [PATCH v2 14/39] i386/hax: remove duplicated includes

2017-10-16 Thread Philippe Mathieu-Daudé
applied using ./scripts/clean-includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- include/sysemu/hax.h | 1 - target/i386/hax-darwin.h | 3 --- target/i386/hax-windows.h | 2 -- target/i386/hax-darwin.c | 6 +- 4

[Qemu-devel] [PATCH v2 11/39] misc: remove headers implicitly included

2017-10-16 Thread Philippe Mathieu-Daudé
applied using ./scripts/clean-includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Stefan Hajnoczi --- hw/audio/fmopl.h | 1 - bsd-user/main.c | 1 - chardev/wctablet.c

[Qemu-devel] [PATCH v2 12/39] misc: remove duplicated includes

2017-10-16 Thread Philippe Mathieu-Daudé
exec: housekeeping (funny since 02d0e095031) applied using ./scripts/clean-includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Acked-by: Cornelia Huck Reviewed-by: Anthony PERARD

[Qemu-devel] [PATCH v2 04/39] MAINTAINERS: add an entry for watchdog/wdt_ib700

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0ce3c353e0..99033b049c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -856,6 +856,7 @@ F:

[Qemu-devel] [PATCH v2 10/39] block: remove "qemu/osdep.h" from header file

2017-10-16 Thread Philippe Mathieu-Daudé
applied using ./scripts/clean-includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- block/dmg.h | 1 - 1 file changed, 1 deletion(-) diff --git a/block/dmg.h b/block/dmg.h index b592d6fa8b..2ecf239ba5 100644 --- a/block/dmg.h

[Qemu-devel] [PATCH v2 03/39] MAINTAINERS: add an entry for the i82378 (superio)

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index cfd9010e27..0ce3c353e0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -712,6 +712,7 @@ F:

[Qemu-devel] [PATCH v2 06/39] MAINTAINERS: add entries for timer/m48t59

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index b90a42d823..06ec24912e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -715,6 +715,8 @@

[Qemu-devel] [PATCH v2 01/39] MAINTAINERS: add entries for i2c/ppc4xx_i2c

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Reviewed-by: Corey Minyard --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9cff9737d3..6f56c1349b 100644 ---

[Qemu-devel] [PATCH v2 08/39] hw: use "qemu/osdep.h" as first #include in source files

2017-10-16 Thread Philippe Mathieu-Daudé
applied using ./scripts/clean-includes Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell Acked-by: David Gibson Acked-by: Cornelia Huck --- hw/acpi/ipmi-stub.c | 1 +

[Qemu-devel] [PATCH v2 05/39] MAINTAINERS: add an entry for input/pckbd.c

2017-10-16 Thread Philippe Mathieu-Daudé
and fix a typo in the "PC Chipset" section Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Hervé Poussineau --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 99033b049c..b90a42d823

[Qemu-devel] [PATCH v2 00/39] remove i386/pc dependency from non-PC world (part 1)

2017-10-16 Thread Philippe Mathieu-Daudé
Hi, quite a bunch of patches and files modified, but the diffstat is not that big. patches missing review: 28, 30, 35...39 since v2: - added R-b, A-b - added missing MAINTAINERS entries (as separate patches) - dma/i82374: avoid multiple creations on the same ISA bus - i386/pc: extract port92

[Qemu-devel] [PATCH v2 02/39] MAINTAINERS: add entries for dma/i82374

2017-10-16 Thread Philippe Mathieu-Daudé
Signed-off-by: Philippe Mathieu-Daudé --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6f56c1349b..cfd9010e27 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -713,6 +713,7 @@ F: hw/ppc/prep_systemio.c F: hw/ppc/rs6000_mc.c F:

Re: [Qemu-devel] [RFC PATCH 20/30] softfloat: half-precision compare functions

2017-10-16 Thread Richard Henderson
On 10/13/2017 09:24 AM, Alex Bennée wrote: > +int float16_eq(float16 a, float16 b, float_status *status) > +{ > +uint32_t av, bv; > +a = float16_squash_input_denormal(a, status); > +b = float16_squash_input_denormal(b, status); > + > +if (( ( extractFloat16Exp( a ) == 0x1F ) &&

Re: [Qemu-devel] [PATCH v1 0/7] kvm: slot handling fixes (and small cleanups)

2017-10-16 Thread Joe Clifford
On 16/10/17 17:20, Paolo Bonzini wrote: On 16/10/2017 16:42, David Hildenbrand wrote: Hopefully this is the last bunch of fixes for the cleanup series. 1. log_start() was called before region_add(), which is wrong. 2. I messed up the calculation of the delta when aligning the ram address

  1   2   3   4   5   >