Re: [Qemu-devel] [PATCH v7 20/28] include: remove compat.h

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:04:02 +0400 Marc-André Lureau wrote: > The header is now empty. > > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/compat.h| 4 > include/hw/i386/pc.h | 1 - > hw/arm/virt.c | 1 - > hw/ppc/spapr.c

Re: [Qemu-devel] [PATCH v7 17/28] compat: replace PC_COMPAT_2_3 & HW_COMPAT_2_3 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:59 +0400 Marc-André Lureau wrote: > Use static arrays instead. I decided to rename the conflicting > pc_compat_2_3() function with pc_compat_2_3_fn(). > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- >

Re: [Qemu-devel] [PATCH v7 16/28] compat: replace PC_COMPAT_2_4 & HW_COMPAT_2_4 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:58 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 ++ > include/hw/compat.h| 27 -- >

Re: [Qemu-devel] [PATCH v7 12/28] compat: replace PC_COMPAT_2_8 & HW_COMPAT_2_8 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:54 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 43

Re: [Qemu-devel] [PATCH v7 15/28] compat: replace PC_COMPAT_2_5 & HW_COMPAT_2_5 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:57 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 24

Re: [Qemu-devel] [PATCH v7 09/28] compat: replace PC_COMPAT_2_11 & HW_COMPAT_2_11 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:51 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 19 --- >

[Qemu-devel] [RFC PATCH 23/25] x86_64-softmmu.mak: remove i386-softmmu.mak include

2018-12-26 Thread Yang Zhong
Only keep same boards definitions as i386-softmmu.mak in x86_64-softmmu.mak. Signed-off-by: Yang Zhong --- default-configs/x86_64-softmmu.mak | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak index

Re: [Qemu-devel] [PATCH v7 21/28] compat: remove remaining PC_COMPAT macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:04:03 +0400 Marc-André Lureau wrote: > Use static arrays instead. I decided to rename the conflicting > pc_compat_2_1() function with pc_compat_2_1_fn(). > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- >

Re: [Qemu-devel] [PATCH v7 11/28] compat: replace PC_COMPAT_2_9 & HW_COMPAT_2_9 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:53 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 19 --- >

Re: [Qemu-devel] [PATCH v7 14/28] compat: replace PC_COMPAT_2_6 & HW_COMPAT_2_6 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:56 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 15 --- >

[Qemu-devel] [RFC PATCH 21/25] virtio: make virtio dependencies with Kconfig

2018-12-26 Thread Yang Zhong
Signed-off-by: Yang Zhong --- default-configs/i386-softmmu.mak | 1 - hw/9pfs/Kconfig | 2 ++ hw/block/Kconfig | 2 ++ hw/char/Kconfig | 2 ++ hw/display/Kconfig | 5 + hw/input/Kconfig | 2 ++

[Qemu-devel] [RFC PATCH 20/25] hyperv: express dependencies with kconfig

2018-12-26 Thread Yang Zhong
remove default-configs/hyperv.mak and make dependencies with Kconfig. Signed-off-by: Yang Zhong --- default-configs/hyperv.mak | 2 -- default-configs/i386-softmmu.mak | 1 - hw/hyperv/Kconfig| 1 + hw/i386/Kconfig | 2 ++ 4 files changed, 3 insertions(+),

Re: [Qemu-devel] [PATCH v7 19/28] compat: replace PC_COMPAT_2_1 & HW_COMPAT_2_1 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:04:01 +0400 Marc-André Lureau wrote: > Use static arrays instead. I decided to rename the conflicting > pc_compat_2_1() function with pc_compat_2_1_fn(). > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- >

Re: [Qemu-devel] [PATCH v7 13/28] compat: replace PC_COMPAT_2_7 & HW_COMPAT_2_7 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:55 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 23 --- >

[Qemu-devel] [RFC PATCH 18/25] ptimer: express dependencies with Kconfig

2018-12-26 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- 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 b27290d332..27ac668584 100644 --- a/hw/Kconfig +++

[Qemu-devel] [RFC PATCH 17/25] i2c: express dependencies with Kconfig

2018-12-26 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- hw/Makefile.objs | 2 +- hw/audio/Kconfig | 1 + hw/display/Kconfig | 3 +++ hw/gpio/Kconfig | 1 + hw/i2c/Kconfig | 6 ++ hw/i2c/Makefile.objs | 3 ++- hw/i386/Kconfig | 1 +

Re: [Qemu-devel] [PATCH v7 18/28] compat: replace PC_COMPAT_2_2 & HW_COMPAT_2_2 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:04:00 +0400 Marc-André Lureau wrote: > Use static arrays instead. I decided to rename the conflicting > pc_compat_2_2() function with pc_compat_2_2_fn(). > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- >

Re: [Qemu-devel] [PATCH v7 10/28] compat: replace PC_COMPAT_2_10 & HW_COMPAT_2_10 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:52 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 11 --- >

[Qemu-devel] [RFC PATCH 08/25] build: switch to Kconfig

2018-12-26 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 19/25] edid: express dependencies with kconfig

2018-12-26 Thread Yang Zhong
Signed-off-by: Yang Zhong --- hw/display/Kconfig | 2 ++ hw/i2c/Kconfig | 1 + 2 files changed, 3 insertions(+) diff --git a/hw/display/Kconfig b/hw/display/Kconfig index 8ddce09ead..8b8f1027b1 100644 --- a/hw/display/Kconfig +++ b/hw/display/Kconfig @@ -38,6 +38,7 @@ config VGA_PCI

Re: [Qemu-devel] [PATCH v7 07/28] compat: replace PC_COMPAT_3_0 & HW_COMPAT_3_0 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:49 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 3 --- >

[Qemu-devel] [RFC PATCH 12/25] build: convert usb.mak to Kconfig

2018-12-26 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 15/25] isa: express dependencies with kconfig

2018-12-26 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- default-configs/i386-softmmu.mak | 10 -- hw/audio/Kconfig | 2 ++ hw/block/Kconfig | 2 ++ hw/char/Kconfig | 5 + hw/display/Kconfig |

Re: [Qemu-devel] [PATCH v7 08/28] compat: replace PC_COMPAT_2_12 & HW_COMPAT_2_12 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:50 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 27

[Qemu-devel] [RFC PATCH 24/25] minikconf: implement allyesconfig, allnoconfig, randconfig, defconfig

2018-12-26 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 10/25] build: convert pci.mak to Kconfig

2018-12-26 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 13/25] scsi: express dependencies with Kconfig

2018-12-26 Thread Yang Zhong
From: Paolo Bonzini This lets you disable SCSI altogether with "CONFIG_SCSI=n". Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- hw/scsi/Kconfig | 11 ++- hw/scsi/Makefile.objs | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/scsi/Kconfig

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

2018-12-26 Thread Yang Zhong
%-softmmu.mak only keep boards definitions in Kconfig mode. Signed-off-by: Yang Zhong --- default-configs/i386-softmmu.mak | 30 -- hw/i386/Kconfig | 30 ++ hw/ide/Kconfig | 2 +- hw/net/Kconfig

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

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

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

2018-12-26 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 14/25] bluetooth: express dependencies with Kconfig

2018-12-26 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong --- 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 --- a/hw/Makefile.objs +++

Re: [Qemu-devel] [PATCH v7 06/28] compat: replace PC_COMPAT_3_1 & HW_COMPAT_3_1 macros

2018-12-26 Thread Igor Mammedov
On Fri, 21 Dec 2018 13:03:48 +0400 Marc-André Lureau wrote: > Use static arrays instead. > > Suggested-by: Eduardo Habkost > Signed-off-by: Marc-André Lureau Reviewed-by: Igor Mammedov > --- > include/hw/boards.h| 3 +++ > include/hw/compat.h| 3 --- > include/hw/i386/pc.h

[Qemu-devel] [RFC PATCH 09/25] ide: express dependencies with Kconfig

2018-12-26 Thread Yang Zhong
From: Paolo Bonzini Signed-off-by: Paolo Bonzini --- default-configs/pci.mak | 3 --- hw/ide/Kconfig | 11 +++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/default-configs/pci.mak b/default-configs/pci.mak index 171bdf48bc..c1b64922b9 100644 ---

[Qemu-devel] [RFC PATCH 16/25] i386: express dependencies with Kconfig

2018-12-26 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 | 32 + hw/acpi/Kconfig | 3 ++

[Qemu-devel] [RFC PATCH 07/25] kconfig: introduce kconfig files

2018-12-26 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 05/25] minikconfig: add semantic analysis

2018-12-26 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 04/25] minikconfig: add AST

2018-12-26 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 00/25] Support Kconfig in QEMU

2018-12-26 Thread Yang Zhong
Happy Christmas && Happy New Year! This Kconfig implementation is rebased from Paolo's branch https://github.com/bonzini/qemu/commits/kconfig I only rebased the x86 platform related arch and extended devices definitions https://github.com/yangzhon/qemu/commits/topic/upstream/Kconfig The current

[Qemu-devel] [RFC PATCH 11/25] build: convert sound.mak to Kconfig

2018-12-26 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 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 03/25] minikconfig: add parser skeleton

2018-12-26 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 02/25] hw/i386/Makefile.objs: Build pc_piix* and pc_q35 boards

2018-12-26 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 --- default-configs/i386-softmmu.mak | 2

[Qemu-devel] [RFC PATCH 01/25] build: actually use CONFIG_PAM

2018-12-26 Thread Yang Zhong
From: Paolo Bonzini Do not link it unconditionally into all binaries. Signed-off-by: Paolo Bonzini --- hw/pci-host/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/pci-host/Makefile.objs b/hw/pci-host/Makefile.objs index 6d6597c065..9d7e7cd1b8 100644 ---

Re: [Qemu-devel] Qemu the right way -[Subthread Cores]

2018-12-26 Thread liebrecht
Thanks a million Andrew -enable-kvm switch really solved the erratic on of switching off the mouse and sound. All I get now are small pips and pops I will have to chase sown. Sounds like buffer overruns of some sort due to too small buffers on the linux receiving end. Dont know how to adjust

Re: [Qemu-devel] Qemu the right way.

2018-12-26 Thread liebrecht
Sound is rickety but at least I can see that it is possible as in my previous post which is already way better than virtualbox. Turning to networking; I can configure windows tcp/ip very well, but for some reason qemu fails at a network connection. Windows report the qemu provided network

[Qemu-devel] [PATCH 2/2] i386: Add some MSR based features on Cascadelake-Server CPU model

2018-12-26 Thread Tao Xu
As noted in http://lists.gnu.org/archive/html/qemu-devel/2018-09/msg02212.html Because MSR based feature has been supported by QEMU, we add CPUID_7_0_EDX_ARCH_CAPABILITIES on Cascadelake-Server CPU model, and add IA32_ARCH_CAPABILITIES MSR based features (RDCL_NO, IBRS_ALL and SKIP_L1DFL_VMENTRY).

[Qemu-devel] [PATCH 1/2] i386: Update stepping of Cascadelake-Server

2018-12-26 Thread Tao Xu
Update the stepping from 5 to 6, in order that the Cascadelake-Server CPU model can support AVX512VNNI and MSR based features exposed by ARCH_CAPABILITIES. Signed-off-by: Tao Xu --- include/hw/i386/pc.h | 4 target/i386/cpu.c| 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff

[Qemu-devel] [PATCH 0/2] Add MSR based features on Cascadelake CPU model

2018-12-26 Thread Tao Xu
These patches update the stepping and add some MSR based features enumerated by ARCH_CAPABILITIES on Cascadelake-Server CPU model. Tao Xu (2): i386: Update stepping of Cascadelake-Server i386: Add some MSR based features on Cascadelake-Server CPU model include/hw/i386/pc.h | 20

Re: [Qemu-devel] Qemu the right way.

2018-12-26 Thread liebrecht
On 2018-12-26 02:14, Thomas Huth wrote: 2) I need to at least have sound working from applications in the guest with pulseaudio on the Debian host. Is it possible ? Should be possible. Run the configure script before compiling with --audio-drv-list=pa and then make sure to give a

Re: [Qemu-devel] Qemu the right way.

2018-12-26 Thread liebrecht
Try to run QEMU with "-smp 4". Thomas thank you for your reply. I will try each of your suggestions in turn. -smp 4 did help and this time i could configure 2 cpus in windows. Now for a very important question. If hardware virtualization was not switched on in bios will qemu refuse to

Re: [Qemu-devel] Qemu the right way.

2018-12-26 Thread liebrecht
I now move on to sound. I could get sound working as you instructed. I chose to load all sound cards and see if I can find one that works. Sound does work but it ios very intermittent, seemingly the same as what happens to the mouse as if there is a timeshare going on. Any idea what that

Re: [Qemu-devel] Qemu the right way.

2018-12-26 Thread liebrecht
Try to run QEMU with "-smp 4". Thomas thank you for your reply. I will try each of your suggestions in turn. -smp 4 did help and this time i could configure 2 cpus in windows. Now for a very important question. If hardware virtualization was not switched on in bios will qemu refuse to

[Qemu-devel] [Bug 1798451] Re: MMX emulation is missing on HVF Acceleration

2018-12-26 Thread Rob Maskell
Still an issue on 3.1.0 and now Mojave -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1798451 Title: MMX emulation is missing on HVF Acceleration Status in QEMU: New Bug description:

[Qemu-devel] [PATCH] target/arm: SVE brk[ab] merging does not have s bit

2018-12-26 Thread Richard Henderson
While brk[ab] zeroing has a flags setting option, the merging variant does not. Retain the same argument structure, to share expansion but force the flag zero and do not decode bit 22. Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson --- The xml from which Alex and I extracted

[Qemu-devel] [RFC PATCH] stm32f103: Add initial skeleton of STM32 F103 SoC

2018-12-26 Thread Priit Laes
Initial barebone SoC implementation for STM32F103 with "Blue Pill" board source for testing. Code is based on both nrf51/microbit and stm32f205. Although code loads and seems to be at the right addresses it does not yet run: ./arm-softmmu/qemu-system-arm -nographic \ -machine

[Qemu-devel] [PULL 07/14] RISC-V: Add hartid and \n to interrupt logging

2018-12-26 Thread Palmer Dabbelt
From: Michael Clark Add carriage return that was erroneously removed when converting to qemu_log. Change hard coded core number to the actual hartid. Cc: Sagar Karandikar Cc: Bastian Koppelmann Cc: Palmer Dabbelt Cc: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Alistair

[Qemu-devel] [PULL 14/14] MAINTAINERS: Mark RISC-V as Supported

2018-12-26 Thread Palmer Dabbelt
There's at least two of us that are paid to work on this. Reviewed-by: Alistair Francis Signed-off-by: Palmer Dabbelt --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index d676c73f8840..317eff6cec4d 100644 --- a/MAINTAINERS +++

[Qemu-devel] [PULL 12/14] target/riscv/pmp.c: Fix pmp_decode_napot()

2018-12-26 Thread Palmer Dabbelt
From: Anup Patel Currently, start and end address of a PMP region are not decoded correctly by pmp_decode_napot(). Let's say we have a 128KB PMP region with base address as 0x8000. Now, the PMPADDRx CSR value for this region will be 0x20003fff. The current pmp_decode_napot() implementation

[Qemu-devel] [PULL 13/14] riscv/cpu: use device_class_set_parent_realize

2018-12-26 Thread Palmer Dabbelt
From: Mao Zhongyi Signed-off-by: Mao Zhongyi Reviewed-by: Bastian Koppelmann Reviewed-by: Alistair Francis Signed-off-by: Palmer Dabbelt --- target/riscv/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index

[Qemu-devel] [PULL 06/14] sifive_u: Set 'clock-frequency' DT property for SiFive UART

2018-12-26 Thread Palmer Dabbelt
From: Anup Patel The 'clock-frequency' DT property is required by U-Boot to compute the divider value. This patch sets the 'clock-frequency' DT property of the SiFive UART device tree node (similar to virt machine). Signed-off-by: Anup Patel Signed-off-by: Anup Patel Signed-off-by: Alistair

[Qemu-devel] [PULL 03/14] hw/riscv/virt: Connect the gpex PCIe

2018-12-26 Thread Palmer Dabbelt
From: Alistair Francis Connect the gpex PCIe device based on the device tree included in the HiFive Unleashed ROM. Signed-off-by: Alistair Francis Signed-off-by: Logan Gunthorpe Reviewed-by: Logan Gunthorpe Tested-by: Guenter Roeck Tested-by: Andrea Bolognani Signed-off-by: Palmer Dabbelt

[Qemu-devel] [PULL 09/14] RISC-V: Fix PLIC pending bitfield reads

2018-12-26 Thread Palmer Dabbelt
From: Michael Clark The address calculation for the pending bitfield had a copy paste bug. This bug went unnoticed because the Linux PLIC driver does not read the pending bitfield, rather it reads pending interrupt numbers from the claim register and writes acknowledgements back to the claim

[Qemu-devel] [PULL 11/14] sifive_uart: Implement interrupt pending register

2018-12-26 Thread Palmer Dabbelt
From: Nathaniel Graff The watermark bits are set in the interrupt pending register according to the configuration of txcnt and rxcnt in the txctrl and rxctrl registers. Since the UART TX does not implement a FIFO, the txwm bit is set as long as the TX watermark level is greater than zero.

[Qemu-devel] [PULL 10/14] RISC-V: Enable second UART on sifive_e and sifive_u

2018-12-26 Thread Palmer Dabbelt
From: Michael Clark Previously the second UARTs on the sifive_e and sifive_u machines where disabled due to check-qtest-riscv32 and check-qtest-riscv64 failures. Recent changes in the QEMU core serial code have resolved these failures so the second UARTs can be instantiated. Cc: Palmer Dabbelt

[Qemu-devel] [PULL 01/14] hw/riscv/virt: Increase the number of interrupts

2018-12-26 Thread Palmer Dabbelt
From: Alistair Francis Increase the number of interrupts to match the HiFive Unleashed board. Signed-off-by: Alistair Francis Tested-by: Guenter Roeck Tested-by: Andrea Bolognani Signed-off-by: Palmer Dabbelt --- include/hw/riscv/virt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[Qemu-devel] [PULL 08/14] RISC-V: Fix CLINT timecmp low 32-bit writes

2018-12-26 Thread Palmer Dabbelt
From: Michael Clark A missing shift made updates to the low order bits of timecmp erroneously copy the old low order bits into the high order bits of the 64-bit timecmp register. Add the missing shift and rename timecmp local variables to timecmp_hi and timecmp_lo. This bug didn't show up as

[Qemu-devel] [PULL 02/14] hw/riscv/virt: Adjust memory layout spacing

2018-12-26 Thread Palmer Dabbelt
From: Alistair Francis Signed-off-by: Alistair Francis Reviewed-by: Logan Gunthorpe Tested-by: Guenter Roeck Tested-by: Andrea Bolognani Signed-off-by: Palmer Dabbelt --- hw/riscv/virt.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/riscv/virt.c

[Qemu-devel] [PULL 05/14] sifive_u: Add clock DT node for GEM ethernet

2018-12-26 Thread Palmer Dabbelt
From: Anup Patel The GEM ethernet on SiFive unleashed has fixed input clock of 125MHz as-per SiFive FU540 manual. This patch updates FDT generation for QEMU sifive_u machine to provide fixed-rate clock for GEM ethernet. Signed-off-by: Anup Patel Signed-off-by: Anup Patel Signed-off-by:

[Qemu-devel] [PULL 04/14] riscv: Enable VGA and PCIE_VGA

2018-12-26 Thread Palmer Dabbelt
From: Alistair Francis Enable compile support for VGA devices. This allows the user to conenct a display by adding '-device bochs-display -display sdl' to their command line argument. Signed-off-by: Alistair Francis Reviewed-by: Logan Gunthorpe Tested-by: Andrea Bolognani Signed-off-by:

[Qemu-devel] [PATCH 2/3] util/cutils: Move ctype macros to "cutils.h"

2018-12-26 Thread Philippe Mathieu-Daudé
Introduced in cd390083ad1, these macros don't need to be in a generic header. Add documentation to justify their use. Signed-off-by: Philippe Mathieu-Daudé --- hw/core/bus.c | 2 +- hw/core/qdev-properties.c | 1 + hw/s390x/s390-virtio-ccw.c | 1 + hw/scsi/scsi-generic.c |

[Qemu-devel] [PULL] RISC-V Changes for 3.2, Part 1

2018-12-26 Thread Palmer Dabbelt
The following changes since commit b72566a4ffaddbc0c0c1f6f5ee91b42ab13ff429: Merge remote-tracking branch 'remotes/vivier2/tags/trivial-patches-pull-request' into staging (2018-12-19 15:31:02 +) are available in the Git repository at: git://github.com/palmer-dabbelt/qemu.git

[Qemu-devel] [PATCH 0/3] cutils: Cleanup, improve documentation

2018-12-26 Thread Philippe Mathieu-Daudé
This series is a fairly trivial cleanup of "cutils.h" (size_to_str() and ctype macros moved into it), and some documentation improvements. Regards, Phil. Philippe Mathieu-Daudé (3): util/cutils: Move size_to_str() from "qemu-common.h" to "cutils.h" util/cutils: Move ctype macros to

[Qemu-devel] [PATCH 3/3] util/cutils: Move function documentations to the header

2018-12-26 Thread Philippe Mathieu-Daudé
Many functions have documentation before the implementation in cutils.c. Since we expect documentation around the prototype declaration in headers, move the comments in cutils.h. Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/cutils.h | 224 ++

[Qemu-devel] [PATCH v3 4/4] MAINTAINERS: Add Aleksandar Rikalo as a reviewer for MIPS content

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Add Aleksandar Rikalo as a reviewer for MIPS content. Aleksandar brings to us more than six years of experience in working on a variety of development tools for MIPS architectures, and will greatly help QEMU community understand and support intricacies of MIPS better.

[Qemu-devel] [PATCH v3 1/4] MAINTAINERS: target/mips: Add MIPS files under default-configs directory

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Add following files as maintained within the main MIPS target section in MAINTAINERS: default-configs/mips64el-linux-user.mak default-configs/mips64-linux-user.mak default-configs/mipsn32el-linux-user.mak default-configs/mipsn32-linux-user.mak

[Qemu-devel] [PATCH v3 3/4] MAINTAINERS: target/mips: Reorder items alphabetically

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Reorder items alphabetically for better visibility. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic --- MAINTAINERS | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index bf82eb3..39fb1ae

[Qemu-devel] [PATCH 1/3] util/cutils: Move size_to_str() from "qemu-common.h" to "cutils.h"

2018-12-26 Thread Philippe Mathieu-Daudé
The size_to_str() function doesn't need to be in a generic header. It makes also sens to find this function in the same header than the opposite string to size functions: qemu_strtosz*(). Note than this function is already implemented in util/cutils.c. Since we introduce a new function in a

[Qemu-devel] [PATCH v3 0/4] MAINTAINERS: Clean up MIPS sections

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Clean up main target/mips section. Add some new files, add email filter, and reorder items. Also, add Aleksandar Rikalo as a reviewer for all MIPS content. v2->v3: - add patch on new MIPS reviewer Aleksandar Rikalo v1->v2: - fixed typo in a commit message -

[Qemu-devel] [PATCH v3 2/4] MAINTAINERS: target/mips: Add filter for mips in email subjects

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Add ability to redirect mails (sent to qemu-devel) containing "mips" in the subject line to MIPS maintainers and reviewers. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [Qemu-devel] [PULL 00/40] ppc-for-4.0 queue 20181221

2018-12-26 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181221054606.22007-1-da...@gibson.dropbear.id.au/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20181221054606.22007-1-da...@gibson.dropbear.id.au Type: series Subject: [Qemu-devel] [PULL

Re: [Qemu-devel] [PATCH 0/3] Allow hw/audio drivers to pass raw DB values to audio/ drivers

2018-12-26 Thread no-reply
Patchew URL: https://patchew.org/QEMU/cover.1545426882.git.yaroslav.isa...@gmail.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: cover.1545426882.git.yaroslav.isa...@gmail.com Type: series Subject: [Qemu-devel] [PATCH 0/3]

Re: [Qemu-devel] [RFC v2 0/4] QEMU changes to do PVH boot

2018-12-26 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1545422632-2-1-git-send-email-liam.merw...@oracle.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 1545422632-2-1-git-send-email-liam.merw...@oracle.com Type: series Subject:

Re: [Qemu-devel] [PATCH 0/3] Allow hw/audio drivers to pass raw DB values to audio/ drivers

2018-12-26 Thread no-reply
Patchew URL: https://patchew.org/QEMU/cover.1545425136.git.yaroslav.isa...@gmail.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: cover.1545425136.git.yaroslav.isa...@gmail.com Type: series Subject: [Qemu-devel] [PATCH 0/3]

Re: [Qemu-devel] [PATCH] qom: Include qemu/fprintf-fn.h in cpu.h

2018-12-26 Thread Philippe Mathieu-Daudé
On 12/26/18 1:37 AM, Priit Laes wrote: > QOM cpu.h uses fprintf_function which requires Qemu's > qemu/fprintf-fn.h header. Include it. > > Signed-off-by: Priit Laes Reviewed-by: Philippe Mathieu-Daudé > --- > include/qom/cpu.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [Qemu-devel] [Spice-devel] Always get Invalid password while trying to connect to spice server

2018-12-26 Thread Frediano Ziglio
> > On martedì 25 dicembre 2018 09:04:31 CET, Uri Lublin wrote: > > Hi, > > Hi and thanks for your answer. > > > It's hard to tell without more details. > > I'll try to provide all the details, let me know if you need anything else. > > > How do you set the password ? > > I set the password

Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches

2018-12-26 Thread Programmingkid
> On Dec 23, 2018, at 3:52 PM, qemu-devel-requ...@nongnu.org wrote: > > Message: 4 > Date: Sun, 23 Dec 2018 21:51:36 +0100 > From: "=?UTF-8?q?K=C5=91v=C3=A1g=C3=B3=2C=20Zolt=C3=A1n?=" > > To: qemu-devel@nongnu.org > Cc: Gerd Hoffmann > Subject: [Qemu-devel] [PATCH v2 00/52] Audio 5.1

[Qemu-devel] [PATCH v5 15/20] disas: nanoMIPS: Rename the decoder of 'gpr3.src.store' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename the decoder of 'gpr3.src.store' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 10 +- disas/nanomips.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/disas/nanomips.cpp

[Qemu-devel] [PATCH v5 03/20] disas: nanoMIPS: Fix a function misnomer

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix wrong function name. The convention in these files is that names of extraction functions should reflect bit patterns they are extracting. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 264

[Qemu-devel] [PATCH v5 02/20] disas: nanoMIPS: Remove functions that are not used

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Some functions were not used at all. Compiler doesn't complain since they are class memebers. Remove them - no future usage is planned. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 208

[Qemu-devel] [PATCH v5 16/20] disas: nanoMIPS: Comment the decoder of 'gpr3.src.store' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Comment the decoder of 'gpr3.src.store' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 32 1 file changed, 32 insertions(+) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp

[Qemu-devel] [PATCH v5 07/20] disas: nanoMIPS: Fix an FP-related misnomer 2

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename NMD::extract_fs_15_14_13_12_11(uint64 instruction) to NMD::extract_fs_20_19_18_17_16(uint64 instruction). Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 242 ++--- disas/nanomips.h | 2 +- 2

[Qemu-devel] [PATCH v5 20/20] disas: nanoMIPS: Comment the decoder of 'gpr4.zero' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Comment the decoder of 'gpr4.zero' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 27 +++ 1 file changed, 27 insertions(+) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index

[Qemu-devel] [PATCH v5 17/20] disas: nanoMIPS: Rename the decoder of 'gpr4' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename the decoder of 'gpr4' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 20 ++-- disas/nanomips.h | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git

[Qemu-devel] [PATCH v5 13/20] disas: nanoMIPS: Rename the decoder of 'gpr3' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename the decoder of 'gpr3' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 96 +++--- disas/nanomips.h | 2 +- 2 files changed, 49 insertions(+), 49

[Qemu-devel] [PATCH v5 14/20] disas: nanoMIPS: Comment the decoder of 'gpr3' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Comment the decoder of 'gpr3' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 51 --- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git

[Qemu-devel] [PATCH v5 08/20] disas: nanoMIPS: Fix an FP-related misnomer 3

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename NMD::extract_ft_20_19_18_17_16(uint64 instruction) to NMD::extract_ft_25_24_23_22_21(uint64 instruction). Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 258 ++--- disas/nanomips.h | 2 +- 2

[Qemu-devel] [PATCH v5 19/20] disas: nanoMIPS: Rename the decoder of 'gpr4.zero' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename the decoder of 'gpr4.zero' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 10 +- disas/nanomips.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/disas/nanomips.cpp

[Qemu-devel] [PATCH v5 18/20] disas: nanoMIPS: Comment the decoder of 'gpr4' gpr encoding type

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Comment the decoder of 'gpr4' gpr encoding type in nanoMIPS disassembler. Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 26 ++ 1 file changed, 26 insertions(+) diff --git a/disas/nanomips.cpp b/disas/nanomips.cpp index

[Qemu-devel] [PATCH v5 05/20] disas: nanoMIPS: Name some functions in a more descriptive way

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename some functions that have names that are hard to understand. Reviewed-by: Stefan Markovic Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 112 ++--- disas/nanomips.h | 32 +++ 2 files

[Qemu-devel] [PATCH v5 06/20] disas: nanoMIPS: Fix an FP-related misnomer 1

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Rename NMD::extract_fd_10_9_8_7_6(uint64 instruction) to NMD::extract_fd_15_14_13_12_11(uint64 instruction). Signed-off-by: Aleksandar Markovic --- disas/nanomips.cpp | 142 ++--- disas/nanomips.h | 2 +- 2 files

[Qemu-devel] [PATCH v5 10/20] disas: nanoMIPS: Fix order of more invocations

2018-12-26 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix order of extraction function invocations so that extraction goes from MSB side to LSB side of the given instruction coding content. This is desireable because of consistency and easier visual spotting of errors. After this patch, all such invocations should be in

  1   2   >