Re: [Qemu-devel] [PATCH V10 0/4] support MAP_SYNC for memory-backend-file

2019-01-22 Thread Yi Zhang
On 2019-01-22 at 22:53:36 -0500, Michael S. Tsirkin wrote: > On Wed, Jan 23, 2019 at 11:10:07AM +0800, Yi Zhang wrote: > > On 2019-01-22 at 22:01:58 -0500, Michael S. Tsirkin wrote: > > > On Wed, Jan 23, 2019 at 10:59:27AM +0800, Zhang, Yi wrote: > > > > From: "Zhang,Yi" > > > > > > > > Linux

[Qemu-devel] [RFC PATCH v4 44/44] Makefile: only support defconfig

2019-01-22 Thread Yang Zhong
add CONFIG_VHOST_USER and CONFIG_LINUX in Kconfig.host, the current Makefile only support defconfig because of randconfig does not work. Signed-off-by: Yang Zhong --- Kconfig.host | 6 ++ Makefile | 16 hw/block/Kconfig | 2 ++ hw/scsi/Kconfig | 2 ++

[Qemu-devel] [RFC PATCH v4 41/44] virtio: make virtio dependencies with Kconfig

2019-01-22 Thread Yang Zhong
Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/i386-softmmu.mak | 1 - default-configs/s390x-softmmu.mak | 1 - default-configs/virtio.mak| 15 --- hw/9pfs/Kconfig | 2 ++ hw/block/Kconfig | 2 ++

[Qemu-devel] [RFC PATCH v4 43/44] minikconf: implement allyesconfig, allnoconfig, randconfig, defconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Apart from defconfig (which is a no-op), the others are implemented implemented simply by ignoring the RHS of assignments and "default" statements. The RHS is replaced respectively by "true", "false" or a random value. Signed-off-by: Paolo Bonzini --- Makefile

[Qemu-devel] [RFC PATCH v4 42/44] i386-softmmu.mak: remove all CONFIG_* except boards definitions

2019-01-22 Thread Yang Zhong
%-softmmu.mak only keep boards definitions in Kconfig mode. Signed-off-by: Yang Zhong --- default-configs/i386-softmmu.mak | 22 -- hw/acpi/Kconfig | 5 + hw/i386/Kconfig | 5 + hw/ipmi/Kconfig | 8

[Qemu-devel] [RFC PATCH v4 35/44] isa: express dependencies with kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- default-configs/i386-softmmu.mak | 9 - hw/audio/Kconfig | 2 ++ hw/block/Kconfig | 2 ++ hw/char/Kconfig | 6 ++ hw/display/Kconfig | 3

[Qemu-devel] [RFC PATCH v4 32/44] build: convert usb.mak to Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Instead of including the same list of devices for each target, let the host controllers select CONFIG_USB and make the devices default to present whenever USB is available. Done with the following script: while read i; do i=${i%=y}; i=${i#CONFIG_} sed -i

[Qemu-devel] [RFC PATCH v4 39/44] edid: express dependencies with kconfig

2019-01-22 Thread Yang Zhong
Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- hw/display/Kconfig | 2 ++ hw/i2c/Kconfig | 1 + 2 files changed, 3 insertions(+) diff --git a/hw/display/Kconfig b/hw/display/Kconfig index 7a9d121772..933793cc13 100644 --- a/hw/display/Kconfig +++ b/hw/display/Kconfig @@ -38,6 +38,7

[Qemu-devel] [RFC PATCH v4 34/44] bluetooth: express dependencies with Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- hw/Makefile.objs | 2 +- hw/usb/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/Makefile.objs b/hw/Makefile.objs index 39d882af6f..b95b0c74a1 100644 ---

[Qemu-devel] [RFC PATCH v4 37/44] i2c: express dependencies with Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Acked-by: Thomas Huth --- default-configs/i386-softmmu.mak | 1 - hw/Makefile.objs | 2 +- hw/audio/Kconfig | 1 + hw/display/Kconfig | 3 +++ hw/gpio/Kconfig

[Qemu-devel] [RFC PATCH v4 29/44] hw/pci/Makefile.objs: make pcie configurable

2019-01-22 Thread Yang Zhong
Make pcie splited from pci and make it configurable. Signed-off-by: Yang Zhong Cc: Michael S. Tsirkin Reviewed-by: Thomas Huth --- default-configs/pci.mak | 1 + hw/pci/Kconfig | 3 +++ hw/pci/Makefile.objs| 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [PATCH V10 0/4] support MAP_SYNC for memory-backend-file

2019-01-22 Thread Yi Zhang
On 2019-01-22 at 23:02:22 -0500, Michael S. Tsirkin wrote: > On Wed, Jan 23, 2019 at 11:10:07AM +0800, Yi Zhang wrote: > > On 2019-01-22 at 22:01:58 -0500, Michael S. Tsirkin wrote: > > > On Wed, Jan 23, 2019 at 10:59:27AM +0800, Zhang, Yi wrote: > > > > From: "Zhang,Yi" > > > > > > > > Linux

[Qemu-devel] [RFC PATCH v4 36/44] i386: express dependencies with Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini This way, the default-configs file only need to specify the boards and any optional devices. Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- default-configs/i386-softmmu.mak | 39 hw/acpi/Kconfig | 3 ++ hw/display/Kconfig

[Qemu-devel] [RFC PATCH v4 27/44] build: switch to Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini The make_device_config.sh script is replaced by minikconf, which is modified to support the same command line as its predecessor. The roots of the parsing are default-configs/*.mak, Kconfig.host and hw/Kconfig. One difference with make_device_config.sh is that all symbols

[Qemu-devel] [RFC PATCH v4 33/44] scsi: express dependencies with Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini This automatically removes the SCSI subsystem from the binary altogether if no controllers are selected. Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- hw/scsi/Kconfig | 12 hw/scsi/Makefile.objs | 2 +- hw/usb/Kconfig| 2 ++ 3

[Qemu-devel] [RFC PATCH v4 38/44] ptimer: express dependencies with Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- hw/Kconfig | 2 ++ hw/net/Kconfig | 2 ++ hw/timer/Kconfig | 6 ++ 3 files changed, 10 insertions(+) diff --git a/hw/Kconfig b/hw/Kconfig index 906143a816..0d836b527e 100644

[Qemu-devel] [RFC PATCH v4 26/44] kconfig: introduce kconfig files

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini The Kconfig files were generated mostly with this script: for i in `grep -ho CONFIG_[A-Z0-9_]* default-configs/* | sort -u`; do set fnord `git grep -lw $i -- 'hw/*/Makefile.objs' ` shift if test $# = 1; then cat >> $(dirname $1)/Kconfig << EOF config

[Qemu-devel] [RFC PATCH v4 30/44] build: convert pci.mak to Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Instead of including the same list of devices for each target, set CONFIG_PCI to true, and make the devices default to present whenever PCI is available. Done mostly with the following script: while read i; do i=${i%=y}; i=${i#CONFIG_} sed -i -e'/^config

[Qemu-devel] [RFC PATCH v4 28/44] ide: express dependencies with Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth --- default-configs/alpha-softmmu.mak | 2 -- default-configs/pci.mak | 3 --- hw/ide/Kconfig| 15 +++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git

[Qemu-devel] [RFC PATCH v4 40/44] hyperv: express dependencies with kconfig

2019-01-22 Thread Yang Zhong
remove default-configs/hyperv.mak and make dependencies with Kconfig. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/hyperv.mak | 2 -- default-configs/i386-softmmu.mak | 1 - hw/hyperv/Kconfig| 4 3 files changed, 4 insertions(+), 3

[Qemu-devel] [RFC PATCH v4 31/44] build: convert sound.mak to Kconfig

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini There is really nothing special in these devices; they are just ISA devices. Instead of including them for each target, set CONFIG_ISA_BUS to true, and make the devices default to present whenever ISA is available. More conversion of ISA devices will follow. Done with the

[Qemu-devel] [RFC PATCH v4 21/44] hw/tricore/Makefile.objs: Create CONFIG_* for tricore

2019-01-22 Thread Yang Zhong
Add the new configs to default-configs/tricore-sofmmu.mak. Signed-off-by: Yang Zhong --- default-configs/tricore-softmmu.mak | 1 + hw/tricore/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/default-configs/tricore-softmmu.mak

[Qemu-devel] [RFC PATCH v4 25/44] hw/display: make edid configurable

2019-01-22 Thread Yang Zhong
Use CONFIG_EDID to make edid-generate.c and edid-region.c configurable. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/pci.mak | 1 + hw/display/Makefile.objs | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/default-configs/pci.mak

[Qemu-devel] [RFC PATCH v4 22/44] minikconfig: add parser skeleton

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini This implements a scanner and recursive descent parser for Kconfig-like configuration files. The only "action" of the parser is for now to detect undefined variables and process include files. The main differences between Kconfig and this are: * only the "bool" type is

[Qemu-devel] [RFC PATCH v4 18/44] hw/hppa/Makefile.objs: Create CONFIG_* for hppa

2019-01-22 Thread Yang Zhong
Add the new configs to default-configs/hppa-sofmmu.mak. Signed-off-by: Yang Zhong --- default-configs/hppa-softmmu.mak | 2 ++ hw/hppa/Makefile.objs| 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/default-configs/hppa-softmmu.mak

[Qemu-devel] [RFC PATCH v4 24/44] minikconfig: add semantic analysis

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini There are three parts in the semantic analysis: 1) evaluating expressions. This is done as a simple visit of the Expr nodes. 2) ordering clauses. This is done by constructing a graph of variables. There is an edge from X to Y if Y depends on X, if X selects Y, or if X

[Qemu-devel] [RFC PATCH v4 16/44] hw/alpha/Makefile.objs: Create CONFIG_* for alpha

2019-01-22 Thread Yang Zhong
Add the new configs to default-configs/alpha-sofmmu.mak. Signed-off-by: Yang Zhong --- default-configs/alpha-softmmu.mak | 2 ++ hw/alpha/Makefile.objs| 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/default-configs/alpha-softmmu.mak

[Qemu-devel] [RFC PATCH v4 17/44] hw/cris/Makefile.objs: Create CONFIG_* for cris

2019-01-22 Thread Yang Zhong
Add the new configs to default-configs/cris-sofmmu.mak. Signed-off-by: Yang Zhong --- default-configs/cris-softmmu.mak | 1 + hw/cris/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/default-configs/cris-softmmu.mak

[Qemu-devel] [RFC PATCH v4 20/44] hw/openrisc/Makefile.objs: Create CONFIG_* for openrisc

2019-01-22 Thread Yang Zhong
Add the new configs to default-configs/or1k-sofmmu.mak. Signed-off-by: Yang Zhong --- default-configs/or1k-softmmu.mak | 1 + hw/openrisc/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/default-configs/or1k-softmmu.mak

[Qemu-devel] [RFC PATCH v4 23/44] minikconfig: add AST

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Add Python classes that represent the Kconfig abstract syntax tree. The abstract syntax tree is stored as a list of clauses. For example: config FOO depends on BAR select BAZ is represented as three clauses: FOO depends on BAR FOO default n

[Qemu-devel] [RFC PATCH v4 11/44] hw/lm32/Makefile.objs: Conditionally build lm32 and milkmyst

2019-01-22 Thread Yang Zhong
From: Ákos Kovács CONFIG_LM32 and CONFIG_MILKYMIST added for lm32 and milkmyst build. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth --- hw/lm32/Makefile.objs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/lm32/Makefile.objs

[Qemu-devel] [RFC PATCH v4 19/44] hw/moxie/Makefile.objs: Conditionally build moxie

2019-01-22 Thread Yang Zhong
CONFIG_MOXIE added for moxiesim board. Signed-off-by: Yang Zhong --- default-configs/moxie-softmmu.mak | 1 + hw/moxie/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/default-configs/moxie-softmmu.mak b/default-configs/moxie-softmmu.mak index

[Qemu-devel] [RFC PATCH v4 14/44] hw/riscv/Makefile.objs: Create CONFIG_* for riscv boards

2019-01-22 Thread Yang Zhong
Add the new configs to default-configs/riscv*-sofmmu.mak. Signed-off-by: Yang Zhong --- default-configs/riscv32-softmmu.mak | 7 +++ default-configs/riscv64-softmmu.mak | 7 +++ hw/riscv/Makefile.objs | 22 +++--- 3 files changed, 25 insertions(+), 11

[Qemu-devel] [RFC PATCH v4 12/44] hw/xtensa/Makefile.objs: Build xtensa_sim and xtensa_fpga conditionally

2019-01-22 Thread Yang Zhong
From: Ákos Kovács Add the new CONFIG_* values to default-config/xtensa*-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Acked-by: Max Filippov --- default-configs/xtensa-softmmu.mak | 3 +++ default-configs/xtensaeb-softmmu.mak | 3 +++

[Qemu-devel] [RFC PATCH v4 10/44] hw/sparc/Makefile.objs: CONFIG_* for sun4m and leon3 created

2019-01-22 Thread Yang Zhong
From: Ákos Kovács CONFIG_LEON3 added to default-configs/sparc-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth --- default-configs/sparc-softmmu.mak | 2 ++ hw/sparc/Makefile.objs| 4 +++- 2 files changed, 5 insertions(+), 1

[Qemu-devel] [RFC PATCH v4 06/44] hw/microblaze/Makefile.objs: Create configs for petalogix and xilinx boards

2019-01-22 Thread Yang Zhong
From: Ákos Kovács CONFIG_PETALOGIX_* and CONFIG_XLNX_* configs added to default-configs/microblaze-softmmu.mak and default-configs/microblazeel-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini --- default-configs/microblaze-softmmu.mak | 3 +++

[Qemu-devel] [RFC PATCH v4 15/44] hw/sparc64/Makefile.objs: Create CONFIG_* for sparc64

2019-01-22 Thread Yang Zhong
Add the new configs to default-configs/sparc64-sofmmu.mak. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/sparc64-softmmu.mak | 2 ++ hw/sparc64/Makefile.objs| 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [RFC PATCH v4 07/44] hw/mips/Makefile.objs: Create CONFIG_* for r4k, malta, mipssim boards

2019-01-22 Thread Yang Zhong
From: Ákos Kovács Add the new configs to default-configs/mips*-sofmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- default-configs/mips-softmmu-common.mak | 3 +++ hw/mips/Makefile.objs | 6 -- 2 files changed, 7

[Qemu-devel] [RFC PATCH v4 09/44] hw/sh4/Makefile.objs: New CONFIG_* varibales created for sh4 boards and device

2019-01-22 Thread Yang Zhong
From: Ákos Kovács Make hw/sh4 configurable and add new CONFIG_* to the default-configs/sh4*-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini --- default-configs/sh4-softmmu.mak | 2 ++ default-configs/sh4eb-softmmu.mak | 2 ++ hw/sh4/Makefile.objs | 4 ++--

[Qemu-devel] [RFC PATCH v4 03/44] hw/i386/Makefile.objs: Build pc_piix* and pc_q35 boards

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini CONFIG_PIIX and CONFIG_Q35 created for the pc board object files. These are enabled automatically at default-configs/i386-softmmu.mak and default-configs/x86_64-softmmu.mak Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth ---

[Qemu-devel] [RFC PATCH v4 13/44] hw/nios2/Makefile.objs: Conditionally build nios2

2019-01-22 Thread Yang Zhong
CONFIG_NIOS2_10M50 added for 10m50 dev board. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/nios2-softmmu.mak | 1 + hw/nios2/Makefile.objs| 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/default-configs/nios2-softmmu.mak

[Qemu-devel] [RFC PATCH v4 05/44] hw/m68k/Makefile.objs: Conditionally build boards

2019-01-22 Thread Yang Zhong
From: Ákos Kovács CONFIG_AN5206, CONFIG_MCF5206 and CONFIG_MCF5208 make variables created for m68k boards, and added to default-configs/m86k-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini --- default-configs/m68k-softmmu.mak | 2 ++ hw/m68k/Makefile.objs| 4

[Qemu-devel] [RFC PATCH v4 04/44] hw/arm/Makefile.objs: CONFIG_VIRT created for virt board

2019-01-22 Thread Yang Zhong
make virt code configurable and the new CONFIG_VIRT definitions added to the default-configs/arm-softmmu.mak to replace CONFIG_ACPI in arm board. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/arm-softmmu.mak | 1 + hw/arm/Makefile.objs| 3 ++- 2 files

[Qemu-devel] [RFC PATCH v4 00/44] Support Kconfig in QEMU

2019-01-22 Thread Yang Zhong
This Kconfig implementation is rebased from Paolo's branch https://github.com/bonzini/qemu/commits/kconfig I rebased most of patches except non-x86 ARCHs dependency definitions this time. https://github.com/yangzhon/qemu/commits/topic/upstream/Kconfig The current RFC patches only support (*)

[Qemu-devel] [RFC PATCH v4 08/44] hw/ppc/Makefile.objs: Build all boards conditinally with CONFIG_*

2019-01-22 Thread Yang Zhong
From: Ákos Kovács CONFIG_PPC405, CONFIG_PPC440, CONFIG_MAC_OLDWORLD, CONFIG_MAX_NEWWORLD and CONFIG_VIRTEX configuration options created for default-configs/ppc*-softmmu.mak. Signed-off-by: Ákos Kovács Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong ---

[Qemu-devel] [RFC PATCH v4 02/44] build: actually use CONFIG_PAM

2019-01-22 Thread Yang Zhong
From: Paolo Bonzini Do not link it unconditionally into all binaries. Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth --- default-configs/i386-softmmu.mak | 1 + hw/pci-host/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff

[Qemu-devel] [RFC PATCH v4 01/44] hw/pci-host/Makefile.objs: make CONFIGS clear for PCI EXPRESS

2019-01-22 Thread Yang Zhong
Change the CONFIGs for PCI EXPRESS and make module name more clear for code files. Signed-off-by: Yang Zhong Cc: Michael S. Tsirkin --- default-configs/arm-softmmu.mak | 4 ++-- default-configs/i386-softmmu.mak | 2 +- default-configs/mips64el-softmmu.mak | 2 +-

Re: [Qemu-devel] [PATCH] MAINTAINERS: update microbit ARM board files

2019-01-22 Thread Thomas Huth
On 2019-01-22 17:29, Stefan Hajnoczi wrote: > New source files were added without corresponding ./MAINTAINERS file > entries. Let's get things up to date. > > Signed-off-by: Stefan Hajnoczi > --- > This also includes the I2C/TWI stub which Peter has merged into his > target-arm.next tree but

Re: [Qemu-devel] [RFC PATCH v2 1/7] kbd-state: add keyboard state tracker

2019-01-22 Thread Gerd Hoffmann
> > + * the corresponding key-down event wasn't send to the guest, > > s/send/sent/ Fixed. > > +void kbd_state_lift_all_keys(KbdState *kbd) > > +{ > > +int qcode; > > + > > +for (qcode = 0; qcode < Q_KEY_CODE__MAX; qcode++) { > > +if (test_bit(qcode, kbd->keys)) { > > +

Re: [Qemu-devel] object owner argument of memory_region_init_ram

2019-01-22 Thread Thomas Huth
On 2019-01-23 04:07, ksourav wrote: > Hi All, > > I am trying to learn how qemu implements different soc. > While reading the source code, I found that in some socs, object owner > is passed as NULL to the routine memory_region_init_ram() (for example > in nrf51 soc) and in some socs(for example

Re: [Qemu-devel] [PATCH] qemu-options: Remove deprecated "-virtioconsole" option

2019-01-22 Thread Thomas Huth
On 2018-12-13 14:18, Paolo Bonzini wrote: > On 13/12/18 08:05, Thomas Huth wrote: >> It's been deprecated since QEMU 3.0, and nobody complained so far, so >> it is time to remove this option now. >> >> Signed-off-by: Thomas Huth > > Queued (for the next pull request, not this one). Ping? ...

Re: [Qemu-devel] [PATCH] Remove deprecated -enable-hax option

2019-01-22 Thread Thomas Huth
On 2018-12-14 13:21, Thomas Huth wrote: > Our command line interface is really quite overcrowded, we should avoid > duplicated options that do the same thing in just a slightly different > way. "-accel hax" is shorter and more generic that "-enable-hax", so > there is really no real usage for the

Re: [Qemu-devel] Bug#919921: qemu-user Linux ELF loader fails to handle pure BSS segments

2019-01-22 Thread Richard Henderson
On 1/22/19 1:39 AM, Philippe Mathieu-Daudé wrote: > Hi Ben, > > On 1/22/19 6:43 AM, Michael Tokarev wrote: >> Forwarding to qemu-devel@ >> http://bugs.debian.org/919921 >> >> Thanks! >> >> 20.01.2019 20:55, Ben Hutchings wrote: >>> Package: qemu-user >>> Version: 1:3.1+dfsg-2 >>> Severity: normal

Re: [Qemu-devel] [PATCH v2 00/10] tcg vector improvements

2019-01-22 Thread Richard Henderson
On 1/7/19 5:11 AM, Mark Cave-Ayland wrote: > #7 0x55852e53 in expand_4_vec (vece=2, dofs=197872, > aofs=198288, bofs=197776, cofs=197792, oprsz=16, tysz=16, > type=TCG_TYPE_V128, write_aofs=true, fni=0x5599182a > ) at > /home/hsp/src/qemu-altivec-55/tcg/tcg-op-gvec.c:903 > t0

Re: [Qemu-devel] [PATCH V10 0/4] support MAP_SYNC for memory-backend-file

2019-01-22 Thread Michael S. Tsirkin
On Wed, Jan 23, 2019 at 11:10:07AM +0800, Yi Zhang wrote: > On 2019-01-22 at 22:01:58 -0500, Michael S. Tsirkin wrote: > > On Wed, Jan 23, 2019 at 10:59:27AM +0800, Zhang, Yi wrote: > > > From: "Zhang,Yi" > > > > > > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > > >

Re: [Qemu-devel] [PATCH V10 0/4] support MAP_SYNC for memory-backend-file

2019-01-22 Thread Michael S. Tsirkin
On Wed, Jan 23, 2019 at 11:10:07AM +0800, Yi Zhang wrote: > On 2019-01-22 at 22:01:58 -0500, Michael S. Tsirkin wrote: > > On Wed, Jan 23, 2019 at 10:59:27AM +0800, Zhang, Yi wrote: > > > From: "Zhang,Yi" > > > > > > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > > >

Re: [Qemu-devel] [PATCH RFC 01/11] TCG translation

2019-01-22 Thread Richard Henderson
On 1/21/19 5:15 AM, Yoshinori Sato wrote: > +/* PSW condition operation */ > +typedef struct { > +TCGv op_mode; > +TCGv op_a1[13]; > +TCGv op_a2[13]; > +TCGv op_r[13]; > +} CCOP; > +CCOP ccop; Why does this have different array sizes than cpu.h? Indeed, why does this have array

Re: [Qemu-devel] [PATCH V10 0/4] support MAP_SYNC for memory-backend-file

2019-01-22 Thread Yi Zhang
On 2019-01-22 at 22:01:58 -0500, Michael S. Tsirkin wrote: > On Wed, Jan 23, 2019 at 10:59:27AM +0800, Zhang, Yi wrote: > > From: "Zhang,Yi" > > > > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > > guarantee the write persistence to mmap'ed files supporting DAX (e.g., > >

[Qemu-devel] object owner argument of memory_region_init_ram

2019-01-22 Thread ksourav
Hi All, I am trying to learn how qemu implements different soc. While reading the source code, I found that in some socs, object owner is passed as NULL to the routine memory_region_init_ram() (for example in nrf51 soc) and in some socs(for example in Allwinner A10) an object(non NULL) is passed

[Qemu-devel] networking

2019-01-22 Thread liebrecht
The windows 7 guest on linux host had networking out of the box. It now lost it for some reason. The qemu string remained the same It now want to do DHCP and fails. It has an intel nic as nic device in device manager. What i cant understand is how to dop a static network config in this

Re: [Qemu-devel] [PATCH V10 0/4] support MAP_SYNC for memory-backend-file

2019-01-22 Thread Michael S. Tsirkin
On Wed, Jan 23, 2019 at 10:59:27AM +0800, Zhang, Yi wrote: > From: "Zhang,Yi" > > Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to > guarantee the write persistence to mmap'ed files supporting DAX (e.g., > files on ext4/xfs file system mounted with '-o dax'). > > A

Re: [Qemu-devel] of apci_1_compatible in CPUHotplugFeatures

2019-01-22 Thread Michael S. Tsirkin
On Tue, Jan 22, 2019 at 08:07:41PM +, Dr. David Alan Gilbert wrote: > Hi, > I noticed that the acpi_1_compatible flag was misspelt as > apci_1_compatible > > so have a trivial patch to fix that, but looking at it - are > thre any cases where a[cp]i_1_compatible can

[Qemu-devel] [PATCH V10 0/4] support MAP_SYNC for memory-backend-file

2019-01-22 Thread Zhang, Yi
From: "Zhang,Yi" Linux 4.15 introduces a new mmap flag MAP_SYNC, which can be used to guarantee the write persistence to mmap'ed files supporting DAX (e.g., files on ext4/xfs file system mounted with '-o dax'). A description of MAP_SYNC and MAP_SHARED_VALIDATE can be found at

[Qemu-devel] [PATCH V10 1/4] util/mmap-alloc: switch 'shared' to 'flags' parameter

2019-01-22 Thread Zhang, Yi
From: Zhang Yi As more flag parameters besides the existing 'shared' are going to be added to qemu_ram_mmap() and qemu_ram_alloc_from_{file,fd}(), let's switch 'shared' to a 'flags' parameter in advance, so as to ease the further additions. Signed-off-by: Haozhong Zhang Signed-off-by: Zhang Yi

[Qemu-devel] [PATCH V10 2/4] util/mmap-alloc: support MAP_SYNC in qemu_ram_mmap()

2019-01-22 Thread Zhang, Yi
From: Zhang Yi When a file supporting DAX is used as vNVDIMM backend, mmap it with MAP_SYNC flag in addition which can ensure file system metadata synced in each guest writes to the backend file, without other QEMU actions (e.g., periodic fsync() by QEMU). Current, We have below different

[Qemu-devel] [PATCH V10 4/4] docs: Added MAP_SYNC documentation

2019-01-22 Thread Zhang, Yi
From: Zhang Yi Signed-off-by: Zhang Yi --- docs/nvdimm.txt | 29 - qemu-options.hx | 4 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/docs/nvdimm.txt b/docs/nvdimm.txt index 5f158a6..166c395 100644 --- a/docs/nvdimm.txt +++ b/docs/nvdimm.txt

[Qemu-devel] [PATCH V10 3/4] hostmem: add more information in error messages

2019-01-22 Thread Zhang, Yi
From: Zhang Yi When there are multiple memory backends in use, including the object type name and the property name in the error message can help users to locate the error. Signed-off-by: Haozhong Zhang Signed-off-by: Zhang Yi Reviewed-by: Eduardo Habkost Reviewed-by: Stefano Garzarella ---

Re: [Qemu-devel] test-filter-mirror hangs

2019-01-22 Thread Jason Wang
On 2019/1/22 上午2:56, Peter Maydell wrote: On Thu, 17 Jan 2019 at 09:46, Jason Wang wrote: On 2019/1/15 上午12:33, Zhang Chen wrote: On Sat, Jan 12, 2019 at 12:15 AM Dr. David Alan Gilbert mailto:dgilb...@redhat.com>> wrote: * Peter Maydell (peter.mayd...@linaro.org

[Qemu-devel] [PULL 30/51] optionrom: add new PVH option rom

2019-01-22 Thread Paolo Bonzini
From: Stefano Garzarella The new pvh.bin option rom can be used with SeaBIOS to boot uncompressed kernel using the x86/HVM direct boot ABI. pvh.S contains the entry point of the option rom. It runs in real mode, loads the e820 table querying the BIOS, and then it switches to 32bit protected

[Qemu-devel] [PULL 33/51] hw/i386/pc: enable PVH only for machine type >= 4.0

2019-01-22 Thread Paolo Bonzini
From: Stefano Garzarella In order to avoid migration issues, we enable PVH only for machine type >= 4.0 Suggested-by: Michael S. Tsirkin Signed-off-by: Stefano Garzarella Signed-off-by: Paolo Bonzini --- hw/i386/pc.c | 4 +++- hw/i386/pc_piix.c| 3 +++ hw/i386/pc_q35.c | 3

[Qemu-devel] [PULL 29/51] linuxboot_dma: move common functions in a new header

2019-01-22 Thread Paolo Bonzini
From: Stefano Garzarella In order to allow other option roms to use these common useful functions and definitions, this patch put them in two new C header files called optrom.h and optrom_fw_cfg.h. We also add useful out*() in*() functions for different size, and new fw_cfg functions to use when

[Qemu-devel] [PULL v2 00/51] Misc patches for 2019-01-23

2019-01-22 Thread Paolo Bonzini
The following changes since commit cce871c504694cf1034adf525556e3ca3c7eebb6: hw/block/xen: use proper format string for printing sectors (2019-01-21 14:45:49 +) are available in the git repository at: git://github.com/bonzini/qemu.git tags/for-upstream for you to fetch changes up to

Re: [Qemu-devel] [PATCH v5 16/35] target/riscv: Convert RV priv insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 1:55 AM Bastian Koppelmann wrote: > > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32.decode| 15 +++ >

Re: [Qemu-devel] [PATCH 1/4] memory: add memory_region_flush_rom_device()

2019-01-22 Thread Paolo Bonzini
On 22/01/19 17:36, Peter Maydell wrote: >> +void memory_region_flush_rom_device(MemoryRegion *mr, hwaddr addr, hwaddr >> size) >> +{ >> +/* In principle this function would work on other memory region types >> too, >> + * but the ROM device use case is the only one where this operation

Re: [Qemu-devel] [PATCH v5 15/35] target/riscv: Convert RV64D insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 1:45 AM Bastian Koppelmann wrote: > > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32-64.decode | 8 + >

Re: [Qemu-devel] [PATCH v5 14/35] target/riscv: Convert RV32D insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 1:57 AM Bastian Koppelmann wrote: > > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32.decode | 28 +++ >

Re: [Qemu-devel] [PATCH v5 13/35] target/riscv: Convert RV64F insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 1:49 AM Bastian Koppelmann wrote: > > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32-64.decode | 6 +++ >

Re: [Qemu-devel] [PATCH v5 12/35] target/riscv: Convert RV32F insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 1:52 AM Bastian Koppelmann wrote: > > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32.decode | 35 +++ >

Re: [Qemu-devel] [PATCH] aspeed/smc: snoop SPI transfers to fake dummy cycles

2019-01-22 Thread Alistair Francis
On Mon, Jan 21, 2019 at 7:50 AM Cédric Le Goater wrote: > > The m25p80 models dummy cycles using byte transfers. This works well > when the transfers are initiated by the QEMU model of a SPI controller > but when these are initiated by the OS, it breaks emulation. > > Snoop the SPI transfer to

Re: [Qemu-devel] [PATCH v5 04/35] target/riscv: Convert RV32I load/store insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 2:07 AM Bastian Koppelmann wrote: > > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32.decode | 10 ++ >

Re: [Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tests

2019-01-22 Thread Emilio G. Cota
On Tue, Jan 22, 2019 at 21:50:14 +, Alex Bennée wrote: > Wire up test/fp-test into the main testing Makefile. Currently we skip > some of the extF80 and f128 related tests. Once we re-factor and fix > these tests the plumbing should get simpler. > > Signed-off-by: Alex Bennée (snip) > +# FPU

Re: [Qemu-devel] [PATCH v3 11/11] tests/Makfile: add check-softfloat rule

2019-01-22 Thread Emilio G. Cota
On Tue, Jan 22, 2019 at 21:50:16 +, Alex Bennée wrote: > This adds a rule to run all of our softfloat tests. It is included as > a pre-requisite to check-tcg and check-unit as well. > > Signed-off-by: Alex Bennée > Reviewed-by: Richard Henderson > --- You might want to fix the commit title

Re: [Qemu-devel] [PATCH v5 10/35] target/riscv: Convert RV32A insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 2:03 AM Bastian Koppelmann wrote: > > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32.decode | 17 +++ >

Re: [Qemu-devel] [PATCH v5 03/35] target/riscv: Convert RVXI branch insns to decodetree

2019-01-22 Thread Alistair Francis
On Tue, Jan 22, 2019 at 2:12 AM Bastian Koppelmann wrote: > > Reviewed-by: Palmer Dabbelt > Reviewed-by: Richard Henderson > Signed-off-by: Bastian Koppelmann > Signed-off-by: Peer Adelt Acked-by: Alistair Francis Alistair > --- > target/riscv/insn32.decode | 19 ++ >

Re: [Qemu-devel] Live migration from Qemu 2.12 hosts to Qemu 3.2 hosts, with VMX flag enabled in the guest?

2019-01-22 Thread Mark Mielke
On Fri, Jan 18, 2019 at 10:25 AM Paolo Bonzini wrote: > On 18/01/19 14:41, Mark Mielke wrote: > > It is useful to understand the risk. However, this is the same risk we > > have been successfully living with for several years now, and it seems > > abrupt to declare 3.1 and 3.2 as the Qemu

[Qemu-devel] [PATCH 1/2] hw/xtensa: xtfpga: fix bootloader placement in SMP

2019-01-22 Thread Max Filippov
Use BSP reset PC as a place for the mini-bootloader because in SMP configurations APs and BSP may have different boot addresses. This fixes SMP linux uImage boot on xtfpga boards. Signed-off-by: Max Filippov --- hw/xtensa/xtfpga.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-)

[Qemu-devel] [PATCH 2/2] hw/xtensa: xtfpga: use core frequency

2019-01-22 Thread Max Filippov
XTFPGA board FPGA peripheral exposes hard-coded 10MHz frequency regardless of the actual used core frequency. Expose actual core frequency instead. Signed-off-by: Max Filippov --- hw/xtensa/xtfpga.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[Qemu-devel] [PATCH 0/2] hw/xtensa: xtfpga board improvements

2019-01-22 Thread Max Filippov
Hello, this series adds two improvements for the XTFPGA board: - use BSP core reset vector to place mini bootloader, because AP cores may have different reset vector address; - expose actual core frequency in the FPGA register instead of the fixed 10MHz value. Max Filippov (2): hw/xtensa:

Re: [Qemu-devel] [PATCH] chardev: Avoid adding duplicate chardev

2019-01-22 Thread Eric Blake
On 1/22/19 8:41 AM, Pankaj Gupta wrote: > Hotplugging existing char chardev with qmp, dereferences(removes) > existing chardev. This patch avoids adding a chardev if a chardev > with same id exists. > > +++ b/chardev/char.c > @@ -985,6 +985,12 @@ ChardevReturn *qmp_chardev_add(const char *id,

Re: [Qemu-devel] [PATCH] block: Apply auto-read-only for ro-whitelist drivers

2019-01-22 Thread Eric Blake
On 1/22/19 6:19 AM, Kevin Wolf wrote: > If QEMU was configured with a driver in --block-drv-ro-whitelist, trying > to use that driver read-write resulted in an error message even if > auto-read-only=on was set. > > Consider auto-read-only=on for the whitelist checking and use it to >

Re: [Qemu-devel] [PATCH 2/5 v2] RISC-V: Add 64-bit gdb xml files.

2019-01-22 Thread Alistair Francis
On Fri, Dec 28, 2018 at 2:20 PM Jim Wilson wrote: > > Signed-off-by: Jim Wilson Acked-by: Alistair Francis Alistair > --- > configure | 1 + > gdb-xml/riscv-64bit-cpu.xml | 43 > gdb-xml/riscv-64bit-csr.xml | 250 >

[Qemu-devel] [PATCH v3 11/11] tests/Makfile: add check-softfloat rule

2019-01-22 Thread Alex Bennée
This adds a rule to run all of our softfloat tests. It is included as a pre-requisite to check-tcg and check-unit as well. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- tests/Makefile.include | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH v3 05/11] fp-test: fix signature of slow_clear_flags and qemu_clear_flags

2019-01-22 Thread Alex Bennée
From: "Emilio G. Cota" To match the type in testfloat. Signed-off-by: Emilio G. Cota Signed-off-by: Alex Bennée --- tests/fp/fp-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fp/fp-test.c b/tests/fp/fp-test.c index fca576309c..2a35ef601d 100644 ---

Re: [Qemu-devel] [PATCH 5/5 v2] RISC-V: Add hooks to use the gdb xml files.

2019-01-22 Thread Alistair Francis
On Fri, Dec 28, 2018 at 2:20 PM Jim Wilson wrote: > > Signed-off-by: Jim Wilson > --- > target/riscv/cpu.c | 9 ++- > target/riscv/gdbstub.c | 73 > -- > 2 files changed, 73 insertions(+), 9 deletions(-) > > diff --git

[Qemu-devel] [PATCH v3 08/11] include/fpu/softfloat: Fix compilation with Clang on s390x

2019-01-22 Thread Alex Bennée
From: Thomas Huth Clang v7.0.1 does not like the __int128 variable type for inline assembly on s390x: In file included from fpu/softfloat.c:97: include/fpu/softfloat-macros.h:647:9: error: inline asm error: This value type register class is not natively supported! asm("dlgr %0, %1" :

Re: [Qemu-devel] Incremental drive-backup with dirty bitmaps

2019-01-22 Thread Eric Blake
On 1/22/19 1:29 PM, Bharadwaj Rayala wrote: > Hi, > > TL(Cant)R: I am trying to figure out a workflow for doing incremental > drive-backups using dirty-bitmaps. Feels qemu lacks some essential features > to achieve it. > > I am trying to build a backup workflow(program) using drive-backup along

[Qemu-devel] [PATCH v3 09/11] tests/Makefile: add floating point tests

2019-01-22 Thread Alex Bennée
Wire up test/fp-test into the main testing Makefile. Currently we skip some of the extF80 and f128 related tests. Once we re-factor and fix these tests the plumbing should get simpler. Signed-off-by: Alex Bennée --- v3 - tweak test function - always call fp-test build ---

[Qemu-devel] [PATCH v3 02/11] fp-bench: remove wrong exponent raise in fill_random

2019-01-22 Thread Alex Bennée
From: "Emilio G. Cota" At this point random_ops[] only contains normals, so there's no need to do anything to them. In fact, raising the exponent here can make the output !normal, which is precisely what the comment says we want to avoid. Signed-off-by: Emilio G. Cota Reviewed-by: Richard

Re: [Qemu-devel] [PATCH 1/5 v2] RISC-V: Add 32-bit gdb xml files.

2019-01-22 Thread Alistair Francis
On Fri, Dec 28, 2018 at 2:24 PM Jim Wilson wrote: > > Signed-off-by: Jim Wilson Acked-by: Alistair Francis Alistair > --- > configure | 1 + > gdb-xml/riscv-32bit-cpu.xml | 43 > gdb-xml/riscv-32bit-csr.xml | 250 >

[Qemu-devel] [PATCH v3 06/11] tests/fp/platform.h: include config-host.h

2019-01-22 Thread Alex Bennée
From: "Emilio G. Cota" We get HOST_WORDS_BIGENDIAN from config-host.h, but the include is missing. Fix it. This fixes `make check-softfloat' on big endian hosts. Reported-by: Peter Maydell Signed-off-by: Emilio G. Cota Signed-off-by: Alex Bennée --- tests/fp/platform.h | 1 + 1 file

  1   2   3   4   >