Re: [Qemu-devel] [PATCH] s390x: remove direct reference to mem_path global form s90x code

2019-01-25 Thread David Hildenbrand
On 24.01.19 17:57, Igor Mammedov wrote: > I plan to deprecate -mem-path option and replace it with memory-backend, > for that it's necessary to get rid of mem_path global variable. > Do it for s390x case, replacing it with alternative way to enable > 1Mb hugepages capability. > > Signed-off-by: Ig

Re: [Qemu-devel] of apci_1_compatible in CPUHotplugFeatures

2019-01-25 Thread Igor Mammedov
On Wed, 23 Jan 2019 18:28:59 + "Dr. David Alan Gilbert" wrote: > * Michael S. Tsirkin (m...@redhat.com) wrote: > > 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 > > > a

Re: [Qemu-devel] [PATCH RFC 2/2] tests/virtio-blk: add test for WRITE_ZEROES command

2019-01-25 Thread Stefano Garzarella
On Fri, Jan 25, 2019 at 07:07:35AM +0100, Thomas Huth wrote: > On 2019-01-25 07:01, Thomas Huth wrote: > > On 2019-01-24 18:23, Stefano Garzarella wrote: > >> If the WRITE_ZEROES feature is enabled, we check this > >> command in the test_basic(). > >> > >> Signed-off-by: Stefano Garzarella > >> --

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

2019-01-25 Thread Jason Wang
On 2019/1/25 下午3:12, Markus Armbruster wrote: Jason Wang writes: On 2019/1/24 下午5:47, Markus Armbruster wrote: Please cc: me on QMP issues. Ok. Jason Wang writes: On 2019/1/24 上午3:53, Dr. David Alan Gilbert wrote: * Jason Wang (jasow...@redhat.com) wrote: On 2019/1/22 上午2:56, Pete

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

2019-01-25 Thread Markus Armbruster
Jason Wang writes: > On 2019/1/25 下午3:12, Markus Armbruster wrote: >> Jason Wang writes: >> >>> On 2019/1/24 下午5:47, Markus Armbruster wrote: Please cc: me on QMP issues. >>> >>> Ok. >>> >>> Jason Wang writes: > On 2019/1/24 上午3:53, Dr. David Alan Gilbert wrote: >> * Jaso

Re: [Qemu-devel] [PATCH RFC 2/2] tests/virtio-blk: add test for WRITE_ZEROES command

2019-01-25 Thread Thomas Huth
On 2019-01-25 09:16, Stefano Garzarella wrote: > On Fri, Jan 25, 2019 at 07:07:35AM +0100, Thomas Huth wrote: >> On 2019-01-25 07:01, Thomas Huth wrote: >>> On 2019-01-24 18:23, Stefano Garzarella wrote: If the WRITE_ZEROES feature is enabled, we check this command in the test_basic(). >>

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-25 Thread Vladimir Sementsov-Ogievskiy
24.01.2019 19:36, Kevin Wolf wrote: > Am 24.01.2019 um 17:18 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 24.01.2019 17:17, Kevin Wolf wrote: >>> Depending on the exact image layout and the storage backend (tmpfs is >>> konwn to have very slow SEEK_HOLE/SEEK_DATA), caching lseek results can >>>

Re: [Qemu-devel] [PATCH] s390x: remove direct reference to mem_path global form s90x code

2019-01-25 Thread Cornelia Huck
On Thu, 24 Jan 2019 17:57:56 +0100 Igor Mammedov wrote: > I plan to deprecate -mem-path option and replace it with memory-backend, > for that it's necessary to get rid of mem_path global variable. > Do it for s390x case, replacing it with alternative way to enable > 1Mb hugepages capability. Get

Re: [Qemu-devel] building rst docs with sphinx

2019-01-25 Thread Peter Maydell
On Thu, 24 Jan 2019 at 21:54, Philippe Mathieu-Daudé wrote: > > Hi Peter, > > On 1/24/19 7:56 PM, Peter Maydell wrote: > > I had another look this afternoon at building our rST docs > > with sphinx-build. In particular, we currently have some > > docs in rst format, but we're not building them int

Re: [Qemu-devel] [PATCH] s390x: remove direct reference to mem_path global form s90x code

2019-01-25 Thread David Hildenbrand
On 25.01.19 10:23, Cornelia Huck wrote: > On Thu, 24 Jan 2019 17:57:56 +0100 > Igor Mammedov wrote: > >> I plan to deprecate -mem-path option and replace it with memory-backend, >> for that it's necessary to get rid of mem_path global variable. >> Do it for s390x case, replacing it with alternati

Re: [Qemu-devel] [PATCH v1] spapr/pci: Fix primary bus number for PCI bridges

2019-01-25 Thread David Hildenbrand
On 24.01.19 03:48, Alexey Kardashevskiy wrote: > > > On 23/01/2019 19:24, David Hildenbrand wrote: >> While looking at the s390x implementation, looks like spapr has a >> similar BUG when building the topology. >> >> The primary bus number corresponds always to the bus number of the >> bus the br

[Qemu-devel] [PATCH] typo: apci->acpi

2019-01-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" apci_1_compatible should be acpi_1_compatible. Signed-off-by: Dr. David Alan Gilbert --- hw/acpi/cpu.c | 2 +- hw/i386/acpi-build.c | 2 +- include/hw/acpi/cpu.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/acpi/cpu.c b/hw/ac

Re: [Qemu-devel] [PULL 0/1] Ui 20190124 patches

2019-01-25 Thread Peter Maydell
On Thu, 24 Jan 2019 at 10:45, Gerd Hoffmann wrote: > > The following changes since commit f6b06fcceef465de0cf2514c9f76fe0192896781: > > Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190121-pull-request' > into staging (2019-01-23 17:57:47 +) > > are available in the git repository

Re: [Qemu-devel] of apci_1_compatible in CPUHotplugFeatures

2019-01-25 Thread Dr. David Alan Gilbert
* Igor Mammedov (imamm...@redhat.com) wrote: > On Wed, 23 Jan 2019 18:28:59 + > "Dr. David Alan Gilbert" wrote: > > > * Michael S. Tsirkin (m...@redhat.com) wrote: > > > On Tue, Jan 22, 2019 at 08:07:41PM +, Dr. David Alan Gilbert wrote: > > > > Hi, > > > > I noticed that the acpi_1_c

Re: [Qemu-devel] [PATCH] gdbstub: Fix i386/x86_64 machine description and add control registers

2019-01-25 Thread Peter Maydell
On Thu, 24 Jan 2019 at 20:29, Doug Gale wrote: > The machine description we send is being (silently) thrown on the floor by > GDB and GDB silently uses the default machine description. > > With current QEMU, if you debug gdb, and set debug_xml=1 and continue, then > attach to qemu gdbstub from t

Re: [Qemu-devel] [PULL 0/1] Qio next patches

2019-01-25 Thread Peter Maydell
On Thu, 24 Jan 2019 at 12:26, Daniel P. Berrangé wrote: > > The following changes since commit 6d809e7da943bb4b95b408fbf3d80d097c0f7d38: > > Merge remote-tracking branch 'remotes/xtensa/tags/20190122-xtensa' into > staging (2019-01-23 21:50:49 +) > > are available in the Git repository at:

[Qemu-devel] Querying possible -cpu variants

2019-01-25 Thread Pavel Dovgalyuk
Hello. We are making GUI for QEMU (which also should allow convenient record/replay command line generation): https://github.com/ispras/qemu-gui To fill the combo box in CPU selection form we run QEMU with "-cpu help" command and parse its output. The format of this list depends on targe

[Qemu-devel] [PATCH] decodetree: re.fullmatch was added in 3.4

2019-01-25 Thread Paolo Bonzini
Python 3 versions earlier than 3.4 do not have it, use the same workaround that is in place for 3.0. Signed-off-by: Paolo Bonzini --- scripts/decodetree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/decodetree.py b/scripts/decodetree.py index 0bc73b5..e342d27 100

Re: [Qemu-devel] Querying possible -cpu variants

2019-01-25 Thread Peter Maydell
On Fri, 25 Jan 2019 at 09:59, Pavel Dovgalyuk wrote: > To fill the combo box in CPU selection form we run QEMU with "-cpu help" > command and parse its > output. > > The format of this list depends on target. Therefore our parsing code does > not look good (and also > may corrupt someday). > > I

[Qemu-devel] [Bug 1795100] Re: VNC unix-domain socket unlink()ed prematurely

2019-01-25 Thread Daniel Berrange
Fix merged to git master https://git.qemu.org/?p=qemu.git;a=commit;h=feff02089113839d233e40a9bd7134241de12d1d ** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launch

[Qemu-devel] [PATCH 01/52] arm: disable CONFIG_SERIAL_ISA

2019-01-25 Thread Paolo Bonzini
ARM does not have an ISA bus, this device should not be enabled. Kconfig catches the contradiction because ARM does not define CONFIG_ISA_BUS. Signed-off-by: Paolo Bonzini --- default-configs/arm-softmmu.mak | 1 - 1 file changed, 1 deletion(-) diff --git a/default-configs/arm-softmmu.mak b/de

[Qemu-devel] [PATCH 05/52] build: actually use CONFIG_PAM

2019-01-25 Thread Paolo Bonzini
Do not link it unconditionally into all binaries. Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-3-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 1 + hw/pci-host/Makefile.objs

[Qemu-devel] [PATCH 02/52] ide: split ioport registration to a separate file

2019-01-25 Thread Paolo Bonzini
This is not needed on ARM, and brings in ISA bus code which is otherwise not necessary. Signed-off-by: Paolo Bonzini --- hw/ide/Makefile.objs | 6 ++--- hw/ide/core.c| 25 hw/ide/ioport.c | 67 3 files change

[Qemu-devel] [PATCH 03/52] vfio: move conditional up to hw/Makefile.objs

2019-01-25 Thread Paolo Bonzini
Instead of wrapping the entire Makefile.objs with an ifeq/endif, just include the directory only for Linux. Signed-off-by: Paolo Bonzini --- hw/Makefile.objs | 2 +- hw/vfio/Makefile.objs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/Makefile.objs b/hw/Makefile.ob

[Qemu-devel] [PATCH 21/52] hw/cris/Makefile.objs: Create CONFIG_* for cris

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/cris-sofmmu.mak. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-18-yang.zh...@intel.com> Reviewed-by: Thomas Huth Signed-off-by: Paolo Bonzini --- default-configs/cris-softmmu.mak | 1 + hw/cris/Makefile.objs| 2

[Qemu-devel] [RFC PATCH v5 00/52] Support Kconfig in QEMU

2019-01-25 Thread Paolo Bonzini
(I'm only momentarily at the helm and will give control back to Yang after this iteration.) This is still RFC mostly because of the lack of documentation, and because only x86 is fully converted, but it's converging. Other targets still enable embedded devices in default-configs/ instead of using

[Qemu-devel] [PATCH 06/52] hw/i386/Makefile.objs: Build pc_piix* and pc_q35 boards

2019-01-25 Thread 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 Message-Id: <20190123065618.3520-4-yang.z

[Qemu-devel] [PATCH 18/52] hw/riscv/Makefile.objs: Create CONFIG_* for riscv boards

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/riscv*-sofmmu.mak. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-15-yang.zh...@intel.com> Reviewed-by: Alistair Francis Signed-off-by: Paolo Bonzini --- default-configs/riscv32-softmmu.mak | 7 +++ default-configs/risc

[Qemu-devel] [PATCH 10/52] hw/mips/Makefile.objs: Create CONFIG_* for r4k, malta, mipssim boards

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-8-yang.zh...@intel.com> Reviewed-by: Thomas Huth Signed-off-by: Paolo Bonzini --- default-configs/mi

[Qemu-devel] [PATCH 04/52] hw/pci-host/Makefile.objs: make CONFIGS clear for PCI EXPRESS

2019-01-25 Thread Paolo Bonzini
From: 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 Message-Id: <20190123065618.3520-2-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/arm-softmmu.mak | 4 ++-- defaul

[Qemu-devel] [PATCH 20/52] hw/alpha/Makefile.objs: Create CONFIG_* for alpha

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/alpha-sofmmu.mak. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-17-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/alpha-softmmu.mak | 1 + hw/alpha/Makefile.objs| 2 +- 2 files changed, 2

[Qemu-devel] [PATCH 17/52] hw/nios2/Makefile.objs: Conditionally build nios2

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong CONFIG_NIOS2_10M50 added for 10m50 dev board. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-14-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/nios2-softmmu.mak | 1 + hw/nios2/Makefile.objs| 3 ++- 2 f

[Qemu-devel] [PATCH 14/52] hw/sparc/Makefile.objs: CONFIG_* for sun4m and leon3 created

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-11-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/sparc-softmmu.mak | 2 ++ hw

[Qemu-devel] [PATCH 13/52] hw/s390/Makefile.objs: Create new CONFIG_* variables for s390x boards and devices

2019-01-25 Thread Paolo Bonzini
Make hw/s390x configurable and add new CONFIG_* to the default-configs/s390x*-softmmu.mak. This will be used to enable/disable vfio-ccw. Signed-off-by: Paolo Bonzini Message-Id: <20190123065618.3520-10-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/s390x-softmmu.mak | 1

[Qemu-devel] [PATCH 07/52] hw/arm/Makefile.objs: CONFIG_VIRT created for virt board

2019-01-25 Thread Paolo Bonzini
From: 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: Richard Henderson Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-5-yang.zh...@in

[Qemu-devel] [PATCH 23/52] hw/moxie/Makefile.objs: Conditionally build moxie

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong CONFIG_MOXIE added for moxiesim board. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-20-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/moxie-softmmu.mak | 1 + hw/moxie/Makefile.objs| 2 +- 2 files changed, 2 insertions(+), 1 d

[Qemu-devel] [PATCH 22/52] hw/hppa/Makefile.objs: Create CONFIG_* for hppa

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/hppa-sofmmu.mak. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-19-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/hppa-softmmu.mak | 1 + hw/hppa/Makefile.objs| 2 +- 2 files changed, 2 ins

[Qemu-devel] [PATCH 08/52] hw/m68k/Makefile.objs: Conditionally build boards

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-6-yang.zh...@intel.com> Signed-off-by: Paolo Bonzin

[Qemu-devel] [PATCH 39/52] build: convert usb.mak to Kconfig

2019-01-25 Thread 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 -e'/^config '$i'$/!b' -en \

[Qemu-devel] [PATCH 16/52] hw/xtensa/Makefile.objs: Build xtensa_sim and xtensa_fpga conditionally

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-13-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-co

[Qemu-devel] [PATCH 09/52] hw/microblaze/Makefile.objs: Create configs for petalogix and xilinx boards

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-7-yang.zh...@intel.com> Reviewed-by: Thomas Hut

[Qemu-devel] [PATCH 24/52] hw/openrisc/Makefile.objs: Create CONFIG_* for openrisc

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/or1k-sofmmu.mak. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-21-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/or1k-softmmu.mak | 1 + hw/openrisc/Makefile.objs| 2 +- 2 files changed, 2 ins

[Qemu-devel] [PATCH 43/52] i2c: express dependencies with Kconfig

2019-01-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Acked-by: Thomas Huth Message-Id: <20190123065618.3520-38-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 2 -- hw/Makefile.objs | 2 +- hw/audio/Kconfig | 1 + hw/d

[Qemu-devel] [PATCH 25/52] hw/tricore/Makefile.objs: Create CONFIG_* for tricore

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/tricore-sofmmu.mak. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-22-yang.zh...@intel.com> Reviewed-by: Thomas Huth Signed-off-by: Paolo Bonzini --- default-configs/tricore-softmmu.mak | 1 + hw/tricore/Makefile.objs

[Qemu-devel] [PATCH 15/52] hw/lm32/Makefile.objs: Conditionally build lm32 and milkmyst

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-12-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- hw/lm32/Makefile.objs | 4 ++-- 1

[Qemu-devel] [PATCH 19/52] hw/sparc64/Makefile.objs: Create CONFIG_* for sparc64

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Add the new configs to default-configs/sparc64-sofmmu.mak. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-16-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/sparc64-softmmu.mak | 2 ++ hw/sparc64/Makefile.objs

[Qemu-devel] [PATCH 49/52] tpm: express dependencies with Kconfig

2019-01-25 Thread 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 Message-Id: <20190123065618.3520-34-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- hw/tpm/Kconfig | 13 +++-- 1 file c

[Qemu-devel] [PATCH 26/52] hw/i2c/Makefile.objs: Create new CONFIG_* variables for EEPROM and ACPI controller

2019-01-25 Thread Paolo Bonzini
Create separate variables for these components, they are used in many boards but not all. This allows finer-grain selection of the included code with default-configs/*.mak. Signed-off-by: Paolo Bonzini Message-Id: <20190123065618.3520-10-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- d

[Qemu-devel] [PATCH 11/52] hw/ppc/Makefile.objs: Build all boards conditinally with CONFIG_*

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-9-y

[Qemu-devel] [PATCH 27/52] hw/vfio/Makefile.objs: Create new CONFIG_* variables for VFIO core and PCI

2019-01-25 Thread Paolo Bonzini
Make hw/vfio configurable and add new CONFIG_VFIO_* to the default-configs/s390x*-softmmu.mak. This allow a finer-grain selection of the various VFIO backends. Signed-off-by: Paolo Bonzini Message-Id: <20190123065618.3520-10-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-config

[Qemu-devel] [PATCH 50/52] isa: express SuperIO dependencies with Kconfig

2019-01-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- default-configs/alpha-softmmu.mak | 5 - default-configs/ppc-softmmu.mak | 9 - default-configs/sh4-softmmu.mak | 9 ++--- default-configs/sh4eb-softmmu.mak | 6 -- hw/isa/Kconfig| 21 + 5 files c

[Qemu-devel] [PATCH 31/52] hw/display: make edid configurable

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Use CONFIG_EDID to make edid-generate.c and edid-region.c configurable. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-26-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/pci.mak | 1 + hw/display/Makefile.objs | 4

[Qemu-devel] [PATCH 29/52] minikconfig: add AST

2019-01-25 Thread 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 select BAZ if FOO Sig

[Qemu-devel] [PATCH 28/52] minikconfig: add parser skeleton

2019-01-25 Thread 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 supported * variables can

[Qemu-devel] [PATCH 44/52] ptimer: express dependencies with Kconfig

2019-01-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-39-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/arm-softmmu.mak| 1 - default-configs/cris-softmmu.mak | 1 - default-configs/lm32-softmmu.ma

[Qemu-devel] [PATCH 12/52] hw/sh4/Makefile.objs: New CONFIG_* varibales created for sh4 boards and device

2019-01-25 Thread Paolo Bonzini
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 Message-Id: <20190123065618.3520-10-yang.zh...@intel.com> Reviewed-by: Thomas Huth Signed-off-by: Paolo Bonzini --- default-configs/sh4-softmmu.mak | 2 ++ d

[Qemu-devel] [PATCH 34/52] minikconf: implement allnoconfig and defconfig

2019-01-25 Thread Paolo Bonzini
Apart from defconfig (which is a no-op), allyesconfig/allnoconfig/randcondfig can be implemented simply by ignoring the RHS of assignments and "default" statements. The RHS is replaced respectively by "true", "false" or a random value. However, allyesconfig and randconfig do not quite work, becau

[Qemu-devel] [PATCH 30/52] minikconfig: add semantic analysis

2019-01-25 Thread 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 appears in a conditional s

[Qemu-devel] [PATCH 38/52] build: convert sound.mak to Kconfig

2019-01-25 Thread 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 following script: wh

[Qemu-devel] [PATCH 52/52] kconfig: introduce CONFIG_TEST_DEVICES

2019-01-25 Thread Paolo Bonzini
This moves some devices that are mostly used for testing purposes (for example in endianness-test) under a new symbol CONFIG_TEST_DEVICES that has to be enabled explicitly in the default-configs file. This makes it easier to drop this code from QEMU if desirable. Signed-off-by: Paolo Bonzini ---

[Qemu-devel] [PATCH 35/52] ide: express dependencies with Kconfig

2019-01-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-29-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/alpha-softmmu.mak | 2 -- default-configs/pci.mak | 3 --- hw/ide/Kconfig| 15 +++ 3 files

[Qemu-devel] [PATCH 33/52] build: switch to Kconfig

2019-01-25 Thread 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 have to be defined in a

[Qemu-devel] [PATCH 36/52] hw/pci/Makefile.objs: make pcie configurable

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Make pcie splited from pci and make it configurable. Signed-off-by: Yang Zhong Cc: Michael S. Tsirkin Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-30-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/arm-softmmu.mak | 1 + default-conf

[Qemu-devel] [PATCH 42/52] i386: express dependencies with Kconfig

2019-01-25 Thread 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 Message-Id: <20190123065618.3520-37-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 44 ++---

Re: [Qemu-devel] [PATCH v2 2/5] vfio-ccw: concurrent I/O handling

2019-01-25 Thread Cornelia Huck
On Thu, 24 Jan 2019 21:37:44 -0500 Eric Farman wrote: > On 01/24/2019 09:25 PM, Eric Farman wrote: > > > > > > On 01/21/2019 06:03 AM, Cornelia Huck wrote: > > [1] I think these changes are cool.  We end up going into (and staying > > in) state=BUSY if we get cc=0 on the SSCH, rather than i

[Qemu-devel] [PATCH 46/52] hyperv: express dependencies with kconfig

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong remove default-configs/hyperv.mak and make dependencies with Kconfig. Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-41-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/hyperv.mak | 2 -- default-configs/i386-s

[Qemu-devel] [PATCH 40/52] scsi: express dependencies with Kconfig

2019-01-25 Thread 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 Message-Id: <20190123065618.3520-34-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- hw/scsi/Kconfig | 11 ++- hw/

[Qemu-devel] [PATCH 41/52] isa: express dependencies with kconfig

2019-01-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-36-yang.zh...@intel.com> Reviewed-by: Thomas Huth Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 9 - hw/audio/Kconfig | 2 ++ hw/block/Kconfig |

[Qemu-devel] [PATCH 45/52] display: express dependencies with kconfig

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-40-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- hw/display/Kconfig | 4 +++- hw/i2c/Kconfig | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/display/Kconfi

Re: [Qemu-devel] [PATCH] typo: apci->acpi

2019-01-25 Thread Igor Mammedov
On Fri, 25 Jan 2019 09:40:46 + "Dr. David Alan Gilbert (git)" wrote: > From: "Dr. David Alan Gilbert" > > apci_1_compatible should be acpi_1_compatible. > > Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Igor Mammedov > --- > hw/acpi/cpu.c | 2 +- > hw/i386/acpi-build.c |

Re: [Qemu-devel] [PATCH v2 2/5] vfio-ccw: concurrent I/O handling

2019-01-25 Thread Cornelia Huck
On Thu, 24 Jan 2019 14:16:21 -0500 Eric Farman wrote: > On 01/23/2019 08:34 AM, Cornelia Huck wrote: > > On Wed, 23 Jan 2019 14:06:01 +0100 > > Halil Pasic wrote: > > > >> On Wed, 23 Jan 2019 11:34:47 +0100 > >> Cornelia Huck wrote: > > > >> Yes, one can usually think of interfaces as c

[Qemu-devel] [PATCH 32/52] kconfig: introduce kconfig files

2019-01-25 Thread 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 ${i#CONFIG_} bool EOF

[Qemu-devel] [PATCH 37/52] build: convert pci.mak to Kconfig

2019-01-25 Thread 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. However, s390x does not want all the PCI devices, so there is a separate symbol to enable them. Done mostly with the following script: while

Re: [Qemu-devel] [PATCH v2 2/5] pflash: flush rom device memory region

2019-01-25 Thread Peter Maydell
On Fri, 25 Jan 2019 at 10:28, Stefan Hajnoczi wrote: > > On Thu, Jan 24, 2019 at 12:11:55PM +0100, Philippe Mathieu-Daudé wrote: > > The device realize() is also executed before the guest is started, is > > this call really necessary? > > My rationale was that machine init only happens before the

[Qemu-devel] [PATCH 48/52] virtio: express virtio dependencies with Kconfig

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong Signed-off-by: Yang Zhong Reviewed-by: Thomas Huth Message-Id: <20190123065618.3520-42-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 1 - default-configs/s390x-softmmu.mak | 1 - default-configs/virtio.mak| 12 ---

Re: [Qemu-devel] [PATCH 0/1] block: Eliminate the S_1KiB, S_2KiB, ... macros

2019-01-25 Thread Kevin Wolf
Am 11.01.2019 um 20:14 hat Markus Armbruster geschrieben: > Back in September, Leonid Block added a whole bunch of macros (commit > 540b8492618) to improve readability of qcow2.h a bit (commit > b6a95c6d100). He later used them to fix the "vdi" driver's parameter > cluster_size's default value (co

[Qemu-devel] [PATCH 47/52] vfio: express vfio dependencies with Kconfig

2019-01-25 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/vfio/Kconfig | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/vfio/Kconfig b/hw/vfio/Kconfig index f896779..ebda9fd 100644 --- a/hw/vfio/Kconfig +++ b/hw/vfio/Kconfig @@ -7,28 +7,30 @@ config VFIO_PCI select VFIO

[Qemu-devel] [PATCH 51/52] i386-softmmu.mak: remove all CONFIG_* except boards definitions

2019-01-25 Thread Paolo Bonzini
From: Yang Zhong %-softmmu.mak only keep boards definitions in Kconfig mode. Signed-off-by: Yang Zhong Message-Id: <20190123065618.3520-43-yang.zh...@intel.com> Signed-off-by: Paolo Bonzini --- default-configs/i386-softmmu.mak | 18 -- hw/acpi/Kconfig | 6 +++

Re: [Qemu-devel] Querying possible -cpu variants

2019-01-25 Thread Daniel P . Berrangé
On Fri, Jan 25, 2019 at 12:58:04PM +0300, Pavel Dovgalyuk wrote: > Hello. > > > > We are making GUI for QEMU (which also should allow convenient record/replay > command line > generation): https://github.com/ispras/qemu-gui > > > > To fill the combo box in CPU selection form we run QEMU wi

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-25 Thread Paolo Bonzini
On 24/01/19 16:42, Kevin Wolf wrote: >> Recently Paolo asked me not to add more users of AioContext lock. >> Unfortunately >> I don't understand the whole picture around it.. Doesn't this apply here? >> https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg03410.html > I don't know. Honestly I

Re: [Qemu-devel] [PATCH] file-posix: Cache lseek result for data regions

2019-01-25 Thread Kevin Wolf
Am 25.01.2019 um 11:10 hat Paolo Bonzini geschrieben: > On 24/01/19 16:42, Kevin Wolf wrote: > >> Recently Paolo asked me not to add more users of AioContext lock. > >> Unfortunately > >> I don't understand the whole picture around it.. Doesn't this apply here? > >> https://lists.gnu.org/archive/h

Re: [Qemu-devel] [PATCH] trace: improve runstate tracing

2019-01-25 Thread Stefan Hajnoczi
On Thu, Jan 24, 2019 at 03:51:54PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Trace previous state, move tracepoint to runstate_set start (to cover > all cases for debugging), add string representations of traced states. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > vl.c | 7

Re: [Qemu-devel] Querying possible -cpu variants

2019-01-25 Thread Pavel Dovgalyuk
> From: Daniel P. Berrangé [mailto:berra...@redhat.com] > On Fri, Jan 25, 2019 at 12:58:04PM +0300, Pavel Dovgalyuk wrote: > > > > We are making GUI for QEMU (which also should allow convenient > > record/replay command line > > generation): https://github.com/ispras/qemu-gui > > > > > > > > To fi

Re: [Qemu-devel] [PATCH v2 2/5] pflash: flush rom device memory region

2019-01-25 Thread Stefan Hajnoczi
On Thu, Jan 24, 2019 at 12:11:55PM +0100, Philippe Mathieu-Daudé wrote: > On 1/23/19 10:22 PM, Stefan Hajnoczi wrote: > > pflash devices should mark the memory region dirty and invalidate TBs > > after directly writing to the RAM backing the ROM device. > > > > Note that pflash_cfi01_get_memory()

Re: [Qemu-devel] [PATCH] s390x: remove direct reference to mem_path global form s90x code

2019-01-25 Thread Igor Mammedov
On Fri, 25 Jan 2019 09:03:49 +0100 David Hildenbrand wrote: > On 24.01.19 17:57, Igor Mammedov wrote: > > I plan to deprecate -mem-path option and replace it with memory-backend, > > for that it's necessary to get rid of mem_path global variable. > > Do it for s390x case, replacing it with altern

Re: [Qemu-devel] [PULL 0/5] Trivial patches patches

2019-01-25 Thread Peter Maydell
On Thu, 24 Jan 2019 at 12:52, Laurent Vivier wrote: > > The following changes since commit 6d809e7da943bb4b95b408fbf3d80d097c0f7d38: > > Merge remote-tracking branch 'remotes/xtensa/tags/20190122-xtensa' into > staging (2019-01-23 21:50:49 +) > > are available in the Git repository at: > >

Re: [Qemu-devel] gdb run / pause broken for some debuggers

2019-01-25 Thread Luc Michel
Hi, On 1/24/19 3:25 PM, Lucien Anti-Spam wrote: > Hi gdbstub maintainers (CC: Luc Michel as he wrote the patch that > probably caused this issue) > > I have found an issue with IDA Pro when moving to QEMU3.x where > RUN/PAUSE has stopped working. > > I am pretty sure its to do with this debugger

Re: [Qemu-devel] [RFC PATCH v5 00/52] Support Kconfig in QEMU

2019-01-25 Thread Yang Zhong
On Fri, Jan 25, 2019 at 11:06:19AM +0100, Paolo Bonzini wrote: > (I'm only momentarily at the helm and will give control back to Yang after > this iteration.) > > This is still RFC mostly because of the lack of documentation, and because > only x86 is fully converted, but it's converging. Other t

Re: [Qemu-devel] [PATCH] s390x: remove direct reference to mem_path global form s90x code

2019-01-25 Thread Christian Borntraeger
On 25.01.2019 11:40, Igor Mammedov wrote: > On Fri, 25 Jan 2019 09:03:49 +0100 > David Hildenbrand wrote: > >> On 24.01.19 17:57, Igor Mammedov wrote: >>> I plan to deprecate -mem-path option and replace it with memory-backend, >>> for that it's necessary to get rid of mem_path global variable

[Qemu-devel] [PATCH RFC 1/8] Update linux headers (5.0-rc2)

2019-01-25 Thread Vitaly Kuznetsov
Signed-off-by: Vitaly Kuznetsov --- include/standard-headers/drm/drm_fourcc.h | 63 + include/standard-headers/linux/ethtool.h | 19 +- .../linux/input-event-codes.h | 19 + include/standard-headers/linux/pci_regs.h |1 + .../standard-headers/linux/virtio_ba

[Qemu-devel] [PATCH RFC 4/8] i386/kvm: Implement 'hv-all' pass-through mode

2019-01-25 Thread Vitaly Kuznetsov
In many case we just want to give Windows guests all currently supported Hyper-V enlightenments and that's where this new mode may come handy. We pass through what was returned by KVM_GET_SUPPORTED_HV_CPUID. hv_cpuid_check_and_set() is modified to also set cpu->hyperv_* flags as we may want to che

[Qemu-devel] [PATCH RFC 7/8] i386/kvm: hv-tlbflush/ipi require hv-vpindex

2019-01-25 Thread Vitaly Kuznetsov
The corresponding hypercalls require using VP indexes. Signed-off-by: Vitaly Kuznetsov --- target/i386/kvm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 7461bf05dd..14d74ca9c7 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -118

[Qemu-devel] [PATCH RFC 6/8] i386/kvm: hv-stimer requires hv-time and hv-synic

2019-01-25 Thread Vitaly Kuznetsov
Synthetic timers operate in hv-time time and Windows won't use these without SynIC. Signed-off-by: Vitaly Kuznetsov --- target/i386/kvm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 674c5dc185..7461bf05dd 100644 --- a/target/i386/kvm.c ++

[Qemu-devel] [PATCH RFC 0/8] i386/kvm/hyper-v: refactor and implement 'hv-stimer-direct' and 'hv-all' enlightenments

2019-01-25 Thread Vitaly Kuznetsov
The recently introduced Direct Mode for Hyper-V synthetic timers enlightenment is only exposed through KVM_GET_SUPPORTED_HV_CPUID ioctl. Take the opportunity and re-implement the way we handle Hyper-V enlightenments in QEMU, add support for hv-stimer-direct and 'hv-all' pass-through mode, add missi

[Qemu-devel] [PATCH RFC 2/8] i386/kvm: add support for KVM_GET_SUPPORTED_HV_CPUID

2019-01-25 Thread Vitaly Kuznetsov
KVM now supports reporting supported Hyper-V features through CPUID (KVM_GET_SUPPORTED_HV_CPUID ioctl). Going forward, this is going to be the only way to announce new functionality and this has already happened with Direct Mode stimers. While we could just support KVM_GET_SUPPORTED_HV_CPUID for n

[Qemu-devel] [PATCH RFC 3/8] i386/kvm: move Hyper-V CPUID filling to hyperv_handle_properties()

2019-01-25 Thread Vitaly Kuznetsov
Let's consolidate Hyper-V features handling in hyperv_handle_properties(). The change is necessary to support pass-through 'hv-all' mode as we'll be just copying CPUIDs from KVM instead of filling them in. Signed-off-by: Vitaly Kuznetsov --- target/i386/kvm.c | 163 +-

Re: [Qemu-devel] [PULL 0/7] Audio 20190124 patches

2019-01-25 Thread Peter Maydell
On Thu, 24 Jan 2019 at 13:27, Gerd Hoffmann wrote: > > The following changes since commit f6b06fcceef465de0cf2514c9f76fe0192896781: > > Merge remote-tracking branch 'remotes/kraxel/tags/ui-20190121-pull-request' > into staging (2019-01-23 17:57:47 +) > > are available in the git repository

[Qemu-devel] [PATCH RFC 5/8] i386/kvm: hv-evmcs requires hv-vapic

2019-01-25 Thread Vitaly Kuznetsov
Enlightened VMCS is enabled by writing to a field in VP assist page and these require virtual APIC. Signed-off-by: Vitaly Kuznetsov --- target/i386/kvm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index b373b4ac06..674c5dc185 100

[Qemu-devel] [PATCH RFC 8/8] i386/kvm: add support for Direct Mode for Hyper-V synthetic timers

2019-01-25 Thread Vitaly Kuznetsov
Hyper-V on KVM can only use Synthetic timers with Direct Mode (opting for an interrupt instead of VMBus message). This new capability is only announced in KVM_GET_SUPPORTED_HV_CPUID. Signed-off-by: Vitaly Kuznetsov --- target/i386/cpu.c | 1 + target/i386/cpu.h | 1 + target/

Re: [Qemu-devel] [PATCH RFC 2/2] tests/virtio-blk: add test for WRITE_ZEROES command

2019-01-25 Thread Liu, Changpeng
> -Original Message- > From: Thomas Huth [mailto:th...@redhat.com] > Sent: Friday, January 25, 2019 4:49 PM > To: Stefano Garzarella ; Michael S. Tsirkin > ; Liu, Changpeng > Cc: qemu-devel@nongnu.org; Laurent Vivier ; Kevin Wolf > ; qemu-bl...@nongnu.org; Max Reitz > ; Stefan Hajnoczi ;

  1   2   3   4   >