Re: [PATCH 03/15] s390x: protvirt: Add diag308 subcodes 8 - 10

2020-02-06 Thread Janosch Frank
On 11/21/19 3:36 PM, Thomas Huth wrote: > On 20/11/2019 12.43, Janosch Frank wrote: >> For diag308 subcodes 8 - 10 we have a new ipib of type 5. The ipib >> holds the address and length of the secure execution header, as well >> as a list of guest components. >> >> Each component is a block of memo

[PULL 09/12] audio: audio_generic_get_buffer_in should honor *size

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin The function generic_get_buffer_in currently ignores the *size parameter and may return a buffer larger than *size. As a result the variable samples in function audio_pcm_hw_run_in may underflow. The while loop then most likely will never termiate. Buglink: http://bugs.debi

[PULL 11/12] coreaudio: fix coreaudio playback

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin There are reports that since commit 2ceb8240fa "coreaudio: port to the new audio backend api" audio playback with CoreAudio is broken. This patch reverts some parts the commit. Because of changes in the audio subsystem the audio clip function in v4.1.0 of coreaudio.c had to

[PULL 08/12] ossaudio: disable poll mode can't be reached

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin Currently there is no way to disable poll mode in oss_enable_out and oss_enable_in when it was enabled before. The enable code path always resets the poll mode state variable. Fixes: b027a538c6 "oss: Remove unused error handling of qemu_set_fd_handler" Signed-off-by: Volker

[PULL 05/12] audio: prevent SIGSEGV in AUD_get_buffer_size_out

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin With audiodev parameter out.mixing-engine=off hw->mix_buf is NULL. This leads to a segmentation fault in AUD_get_buffer_size_out. This patch reverts a small part of dc88e38fa7 "audio: unify input and output mixeng buffer management". To reproduce the problem start qemu with

[PULL 03/12] audio: fix audio_generic_read

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin It seems the function audio_generic_read started as a copy of function audio_generic_write and some necessary changes were forgotten. Fix the mixed up source and destination pointers and rename misnamed variables. Signed-off-by: Volker Rümelin Message-Id: <20200123074943.66

[PULL 04/12] paaudio: remove unused variables

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin The unused variables were last used before commit 49ddd7e122 "paaudio: port to the new audio backend api". Fixes: 49ddd7e122 Signed-off-by: Volker Rümelin Message-Id: <20200123074943.6699-3-vr_q...@t-online.de> Signed-off-by: Gerd Hoffmann --- audio/paaudio.c | 6 ++

Re: qmp-shell for GSoC/Outreachy?

2020-02-06 Thread Markus Armbruster
"Dr. David Alan Gilbert" writes: > * Markus Armbruster (arm...@redhat.com) wrote: > That I wrote: >> > >> > I believe it should be a python shell with added commands. >> > >> > Simple things should be simple. >> > e.g. adding a disk from a local file should be trivial. >> > >> > Complex thing

[PULL 02/12] audio: fix audio_generic_write

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin The pcm_ops function put_buffer_out expects the returned pointer of function get_buffer_out as argument. Fix this. Signed-off-by: Volker Rümelin Message-Id: <20200123074943.6699-1-vr_q...@t-online.de> Signed-off-by: Gerd Hoffmann --- audio/audio.c | 2 +- 1 file changed,

[PULL 12/12] audio: proper support for float samples in mixeng

2020-02-06 Thread Gerd Hoffmann
From: Kővágó, Zoltán This adds proper support for float samples in mixeng by adding a new audio format for it. Limitations: only native endianness is supported. None of the virtual sound cards support float samples (it looks like most of them only support 8 and 16 bit, only hda supports 32 bit)

[PULL 01/12] audio/oss: fix buffer pos calculation

2020-02-06 Thread Gerd Hoffmann
Fixes: 3ba4066d085f ("ossaudio: port to the new audio backend api") Reported-by: ziming zhang Signed-off-by: Gerd Hoffmann Message-Id: <20200120101804.29578-1-kra...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé --- audio/ossaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PULL 10/12] audio/dsound: fix invalid parameters error

2020-02-06 Thread Gerd Hoffmann
From: Kővágó, Zoltán Windows (unlike wine) bails out when IDirectSoundBuffer8::Lock is called with zero length. Also, hw->pos_emul handling was incorrect when calling this function for the first time. Signed-off-by: Kővágó, Zoltán Reported-by: KJ Liew Tested-by: Howard Spoelstra Message-id:

[PULL 07/12] ossaudio: prevent SIGSEGV in oss_enable_out

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin With audiodev parameter out.mixing-engine=off hw->mix_buf is NULL. This patch reverts a small part of dc88e38fa7 "audio: unify input and output mixeng buffer management". To reproduce the problem start qemu with -audiodev oss,id=audio0,try-mmap=on,out.mixing-engine=off Sign

[PULL 06/12] audio: fix bug 1858488

2020-02-06 Thread Gerd Hoffmann
From: Volker Rümelin The combined generic buffer management code and buffer run out code in function audio_generic_put_buffer_out has a problematic behaviour. A few hundred milliseconds after playback starts the mixing buffer and the generic buffer are nearly full and the following pattern can be

[PULL 00/12] Audio 20200207 patches

2020-02-06 Thread Gerd Hoffmann
The following changes since commit 928173659d6e5dc368284f73f90ea1d129e1f57d: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20200130' into staging (2020-01-30 16:19:04 +) are available in the Git repository at: git://git.kraxel.org/qemu tags/audio-20200207-pull-requ

Re: [PATCH v2 1/2] target/arm: kvm: Inject events at the last stage of sync

2020-02-06 Thread Andrew Jones
On Thu, Feb 06, 2020 at 09:41:10PM +, Beata Michalska wrote: > On Tue, 4 Feb 2020 at 10:34, Andrew Jones wrote: > > > > On Wed, Jan 29, 2020 at 08:24:40PM +, Beata Michalska wrote: > > > KVM_SET_VCPU_EVENTS might actually lead to vcpu registers being modified. > > > As such this should be

[RFC PATCH v3 0/2] Cross-device resource sharing

2020-02-06 Thread David Stevens
Hi all, This is the next iteration of patches for adding support for sharing resources between different virtio devices. In addition to these patches, the most recent virtio-video patchset includes a patch for importing objects into that device [1]. [1] https://markmail.org/message/wxdne5re7aaugb

[RFC PATCH v3 1/2] content: define what an exported object is

2020-02-06 Thread David Stevens
Define a mechanism for sharing objects between different virtio devices. Signed-off-by: David Stevens --- content.tex | 12 introduction.tex | 4 2 files changed, 16 insertions(+) diff --git a/content.tex b/content.tex index b1ea9b9..ad3723c 100644 --- a/content.tex +++

[RFC PATCH v3 2/2] virtio-gpu: add the ability to export resources

2020-02-06 Thread David Stevens
Signed-off-by: David Stevens --- virtio-gpu.tex | 29 + 1 file changed, 29 insertions(+) diff --git a/virtio-gpu.tex b/virtio-gpu.tex index af4ca61..e950ad3 100644 --- a/virtio-gpu.tex +++ b/virtio-gpu.tex @@ -186,12 +186,16 @@ \subsubsection{Device Operation: Request

Re: [RFC PATCH v2 5/5] target/arm/cpu: Add the kvm-no-adjvtime CPU property

2020-02-06 Thread Andrew Jones
On Thu, Feb 06, 2020 at 11:46:49PM +0100, Philippe Mathieu-Daudé wrote: > On 2/6/20 1:40 PM, Andrew Jones wrote: > > On Thu, Feb 06, 2020 at 01:08:53PM +0100, Philippe Mathieu-Daudé wrote: > > ... > > > > +/* KVM VCPU properties should be prefixed with "kvm-". */ > > > > +void kvm_arm_add_vcpu_prop

Re: [PATCH v2 3/4] m25p80: Improve command handling for unsupported commands

2020-02-06 Thread Cédric Le Goater
On 2/6/20 7:32 PM, Guenter Roeck wrote: > Whenever an unsupported command is encountered, the current code > interprets each transferred byte as new command. Most of the time, those > 'commands' are interpreted as new unknown commands. However, in rare > cases, it may be that for example address or

Re: [PATCH v2 1/4] m25p80: Convert to support tracing

2020-02-06 Thread Cédric Le Goater
On 2/6/20 7:32 PM, Guenter Roeck wrote: > While at it, add some trace messages to help debug problems > seen when running the latest Linux kernel. > > Signed-off-by: Guenter Roeck Reviewed-by: Cédric Le Goater > --- > v2: Print pointer to Flash data structure as flash ID with each trace >

Re: [PATCH v2 2/4] m25p80: Improve command handling for Jedec commands

2020-02-06 Thread Cédric Le Goater
On 2/6/20 7:32 PM, Guenter Roeck wrote: > When requesting JEDEC data using the JEDEC_READ command, the Linux kernel > always requests 6 bytes. The current implementation only returns three > bytes, and interprets the remaining three bytes as new commands. > While this does not matter most of the ti

Re: [PATCH 2/2] spapr: Enable virtio iommu_platform=on by default

2020-02-06 Thread Michael S. Tsirkin
On Fri, Feb 07, 2020 at 03:30:55PM +1100, David Gibson wrote: > Traditionally, virtio devices don't do DMA by the usual path on the > guest platform. In particular they usually bypass any virtual IOMMU > the guest has, using hypervisor magic to access untranslated guest > physical addresses. > >

Re: [PATCH 1/2] spapr: Disable legacy virtio devices for pseries-5.0 and later

2020-02-06 Thread Michael S. Tsirkin
On Fri, Feb 07, 2020 at 03:30:54PM +1100, David Gibson wrote: > PAPR specifies a kind of odd, paravirtualized PCI bus, which looks to > the guess mostly like classic PCI, even if some of the individual > devices on the bus are PCI Express. One consequence of that is that > virtio-pci devices still

[PATCH] ppc: function to setup latest class options

2020-02-06 Thread Michael S. Tsirkin
We are going to add more init for the latest machine, so move the setup to a function so we don't have to change the DEFINE_SPAPR_MACHINE macro each time. Signed-off-by: Michael S. Tsirkin --- hw/ppc/spapr.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spap

[PATCH v2] apic: Report current_count via 'info lapic'

2020-02-06 Thread Jan Kiszka
From: Jan Kiszka This is helpful when debugging stuck guest timers. As we need apic_get_current_count for that, and it is really not emulation specific, move it to apic_common.c and export it. Fix its style at this chance as well. Signed-off-by: Jan Kiszka Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH] apic: Report current_count via 'info lapic'

2020-02-06 Thread Jan Kiszka
On 06.02.20 23:36, Philippe Mathieu-Daudé wrote: > On 2/6/20 8:50 PM, Jan Kiszka wrote: >> From: Jan Kiszka >> >> This is helpful when debugging stuck guest timers. >> >> As we need apic_get_current_count for that, and it is really not >> emulation specific, move it to apic_common.c and export it.

Re: [PATCH v2] hw/core: Allow setting 'virtio-blk-device.scsi' property on OSX host

2020-02-06 Thread Michael S. Tsirkin
On Fri, Feb 07, 2020 at 01:14:04AM +0100, Philippe Mathieu-Daudé wrote: > Commit ed65fd1a2750 ("virtio-blk: switch off scsi-passthrough by > default") changed the default value of the 'scsi' property of > virtio-blk, which is only available on Linux hosts. It also added > an unconditional compat en

Re: Qemu 4.2.0 on Windows host

2020-02-06 Thread Stefan Weil
Am 06.02.20 um 23:17 schrieb Philippe Mathieu-Daudé: > Cc'ing Stefan who might know... > > On 2/8/20 1:42 PM, Jerry Geis wrote: >> I am trying to figure out how to boot a linux external USB disk from >> windows host ? >> >> I do this all the time on linux - simply -hda /dev/sdb >> >> But how do I

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-06 Thread jasper.lowell
I haven't figured out where that is coming from. The error doesn't look like it's in the OpenSolaris source code so I don't have any context behind it. The error does show up here: https://docs.oracle.com/cd/E23824_01/html/821-1475/uata-7d.html so it might be related to the IDE controller. The b

Re: [kvm-unit-tests PATCH v3 09/14] arm/arm64: ITS: Device and collection Initialization

2020-02-06 Thread Zenghui Yu
Hi Eric, On 2020/1/28 18:34, Eric Auger wrote: Introduce an helper functions to register - a new device, characterized by its device id and the max number of event IDs that dimension its ITT (Interrupt Translation Table). The function allocates the ITT. - a new collection, characterized

RE: [PATCH] Add support for a helper with 7 arguments

2020-02-06 Thread Taylor Simpson
> -Original Message- > From: Richard Henderson > Sent: Thursday, February 6, 2020 6:28 PM > To: Taylor Simpson ; Richard Henderson > ; qemu-devel@nongnu.org > Cc: Paolo Bonzini > Subject: Re: [PATCH] Add support for a helper with 7 arguments > > On 2/6/20 5:52 PM, Taylor Simpson wrote:

[PATCH 0/2] spapr: Use vIOMMU translation for virtio by default

2020-02-06 Thread David Gibson
Upcoming Secure VM support for pSeries machines introduces some complications for virtio, since the transfer buffers need to be explicitly shared so that the hypervisor can access them. While it's not strictly speaking dependent on it, the fact that virtio devices bypass normal platform IOMMU tran

[PATCH 1/2] spapr: Disable legacy virtio devices for pseries-5.0 and later

2020-02-06 Thread David Gibson
PAPR specifies a kind of odd, paravirtualized PCI bus, which looks to the guess mostly like classic PCI, even if some of the individual devices on the bus are PCI Express. One consequence of that is that virtio-pci devices still default to being in transitional mode, though legacy mode is now disa

[PATCH 2/2] spapr: Enable virtio iommu_platform=on by default

2020-02-06 Thread David Gibson
Traditionally, virtio devices don't do DMA by the usual path on the guest platform. In particular they usually bypass any virtual IOMMU the guest has, using hypervisor magic to access untranslated guest physical addresses. There's now the optional iommu_platform flag which can tell virtio devices

[PATCH] contrib/elf2dmp: prevent uninitialized warning

2020-02-06 Thread kuhn.chenqun
From: Chen Qun Fix compilation warnings: contrib/elf2dmp/main.c:66:17: warning: ‘KdpDataBlockEncoded’ may be used uninitialized in this function [-Wmaybe-uninitialized] block = __builtin_bswap64(block ^ kdbe) ^ kwa; ^~~ contrib/elf2dmp/main.c

Re: [kvm-unit-tests PATCH v3 08/14] arm/arm64: ITS: its_enable_defaults

2020-02-06 Thread Zenghui Yu
Hi Eric, On 2020/1/28 18:34, Eric Auger wrote: its_enable_defaults() is the top init function that allocates the command queue and all the requested tables (device, collection, lpi config and pending tables), enable LPIs at distributor level and ITS level. gicv3_enable_defaults must be called b

[PATCH rc5 25/32] hw/avr: Add limited support for some Arduino boards

2020-02-06 Thread Aleksandar Markovic
From: Philippe Mathieu-Daudé Arduino boards are build with AVR chipsets. Add some of these boards: - Arduino Duemilanove - Arduino Uno - Arduino Mega For more information: https://www.arduino.cc/en/Main/Products https://store.arduino.cc/arduino-genuino/most-popular [AM: Remove word '

[PATCH rc5 20/32] hw/timer: avr: Add limited support for 16-bit timer peripheral

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik These were designed to facilitate testing but should provide enough function to be useful in other contexts. Only a subset of the functions of each peripheral is implemented, mainly due to the lack of a standard way to handle electrical connections (like GPIO pins). [AM: Re

Re: [kvm-unit-tests PATCH v3 06/14] arm/arm64: gicv3: Set the LPI config and pending tables

2020-02-06 Thread Zenghui Yu
Hi Eric, On 2020/1/28 18:34, Eric Auger wrote: Allocate the LPI configuration and per re-distributor pending table. Set redistributor's PROPBASER and PENDBASER. The LPIs are enabled by default in the config table. Also introduce a helper routine that allows to set the pending table bit for a gi

[PATCH rc5 19/32] hw/char: avr: Add limited support for USART peripheral

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik These were designed to facilitate testing but should provide enough function to be useful in other contexts. Only a subset of the functions of each peripheral is implemented, mainly due to the lack of a standard way to handle electrical connections (like GPIO pins). [AM: Re

[PATCH rc5 24/32] hw/avr: Add some ATmega microcontrollers

2020-02-06 Thread Aleksandar Markovic
From: Philippe Mathieu-Daudé Add some AVR microcontrollers from the ATmega family: - middle range: ATmega168 and ATmega328 - high range: ATmega1280 and ATmega2560 For product comparison: https://www.microchip.com/wwwproducts/ProductCompare/ATmega168P/ATmega328P https://www.microchip.com

[PATCH rc5 26/32] target/avr: Update build system

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Make AVR support buildable. [AM: Remove word 'Atmel' from filenames and all elements of code] Suggested-by: Aleksandar Markovic Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philippe Mathieu-Daudé Reviewed-b

[PATCH rc5 13/32] target/avr: Add instruction translation - Data Transfer Instructions

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - MOV, MOVW - LDI, LDS LDX LDY LDZ - LDDY, LDDZ - STS, STX STY STZ - STDY, STDZ - LPM, LPMX - ELPM, ELPMX - SPM, SPMX - IN, OUT - PUSH, POP - XCH - LAS, LAC LAT Signed-off-by: Michael Rolnik Signed-off-by: Richa

[PATCH rc5 29/32] tests/acceptance: Test the Arduino MEGA2560 board

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik The test is based on https://github.com/seharris/qemu-avr-tests/tree/master/free-rtos/Demo demo which. If working correctly, prints 'ABCDEFGHIJKLMNOPQRSTUVWX' out. it also demostrates that timer and IRQ are working As the path name demonstrates, the FreeRTOS tests target a b

[PATCH rc5 28/32] tests/boot-serial: Test some Arduino boards (AVR based)

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Print out 'T' through serial port. The Arduino Duemilanove is based on a AVR5 CPU, while the Arduino MEGA2560 on a AVR6 CPU. Signed-off-by: Michael Rolnik Signed-off-by: Philippe Mathieu-Daudé [rth: Squash Arduino adjustments from f4bug] Tested-by: Richard Henderson Sign

[PATCH rc5 32/32] target/avr: Add section into QEMU documentation

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik The new section explains basic ways of using AVR target in QEMU. Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson [PMD: Fixed typos] Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic --- qemu-doc.tex

[PATCH rc5 11/32] target/avr: Add instruction translation - Arithmetic and Logic Instructions

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - ADD, ADC, ADIW - SBIW, SUB, SUBI, SBC, SBCI - AND, ANDI - OR, ORI, EOR - COM, NEG - INC, DEC - MUL, MULS, MULSU - FMUL, FMULS, FMULSU - DES Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philip

[PATCH rc5 31/32] target/avr: Simplify sections in MAINTAINERS file

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Simplify sections for AVR maintanenance in MAINTAINERS file. Signed-off-by: Michael Rolnik Signed-off-by: Philippe Mathieu-Daudé [rth: Squash ordering fixes from f4bug] Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic

[PATCH rc5 09/32] target/avr: Add instruction helpers

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Add helpers for instructions that need to interact with QEMU. Also, add stubs for unimplemented instructions. Instructions SPM and WDR are left unimplemented because they require emulation of complex peripherals. The implementation of instruction SLEEP is very limited due to

[PATCH rc5 23/32] hw/avr: Add support for loading ELF/raw binaries

2020-02-06 Thread Aleksandar Markovic
From: Philippe Mathieu-Daudé Add avr_load_firmware() function to load firmware in ELF or raw binary format. [AM: Corrected the type of the variable containing e_flags] [AM: Moved definition of e_flags conversion function to boot.c] Suggested-by: Aleksandar Markovic Signed-off-by: Philippe Mathi

[PATCH rc5 21/32] hw/misc: avr: Add limited support for power reduction device

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This is a simple device of just one register, and whenever this register is written to it calls qemu_set_irq function for each of 8 bits/IRQs. It is used to implement AVR Power Reduction. [AM: Remove word 'Atmel' from filenames and all elements of code] Suggested-by: Aleksan

[PATCH rc5 30/32] .travis.yml: Run the AVR acceptance tests

2020-02-06 Thread Aleksandar Markovic
From: Philippe Mathieu-Daudé We have one test so far, and it is very fast: $ avocado --show=app run -t arch:avr tests/acceptance/ (1/1) tests/acceptance/machine_avr6.py:AVR6Machine.test_freertos: PASS (2.13 s) RESULTS: PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCE

[PATCH rc5 10/32] target/avr: Add instruction translation - Register definitions

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Start implementation of instructions by adding register definitions. Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic

[PATCH rc5 12/32] target/avr: Add instruction translation - Branch Instructions

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - RJMP, IJMP, EIJMP, JMP - RCALL, ICALL, EICALL, CALL - RET, RETI - CPSE, CP, CPC, CPI - SBRC, SBRS, SBIC, SBIS - BRBC, BRBS Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by:

[PATCH rc5 27/32] tests/machine-none: Add AVR support

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Add a single code line that will automatically provide 'machine none' test. Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic Reviewed-by: Thomas Huth ---

[PATCH rc5 18/32] target/avr: Add support for disassembling via option '-d in_asm'

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Provide function disassembles executed instruction when `-d in_asm` is provided Example: `./avr-softmmu/qemu-system-avr -bios free-rtos/Demo/AVR_ATMega2560_GCC/demo.elf -d in_asm` will produce something like the following ``` ... IN: 0x014a: CALL 0x38

[PATCH rc5 14/32] target/avr: Add instruction translation - Bit and Bit-test Instructions

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - LSR, ROR - ASR - SWAP - SBI, CBI - BST, BLD - BSET, BCLR Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic --- ta

[PATCH rc5 22/32] target/avr: Register AVR support with the rest of QEMU

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Add AVR related definitions into QEMU. [AM: Remove word 'Atmel' from filenames and all elements of code] Suggested-by: Aleksandar Markovic Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philippe Mathieu-Daudé

[PATCH rc5 06/32] target/avr: CPU class: Add GDB support

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This includes GDB hooks for reading from wnd wrtiting to AVR registers, and xml register definition file as well. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris

[PATCH rc5 16/32] target/avr: Add instruction translation - CPU main translation function

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Add the core of translation mechanism. Co-developed-by: Richard Henderson Co-developed-by: Michael Rolnik Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovi

[PATCH rc5 17/32] target/avr: Initialize TCG register variables

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Initialize TCG register variables. Co-developed-by: Richard Henderson Co-developed-by: Michael Rolnik Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Tested-by: Philippe Mathieu-Daudé Reviewed-by: Aleksandar Markovic -

[PATCH rc5 15/32] target/avr: Add instruction translation - MCU Control Instructions

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This includes: - BREAK - NOP - SLEEP - WDR Signed-off-by: Michael Rolnik Signed-off-by: Richard Henderson Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic --- target/avr/insn.decode | 8 ++ target/avr/translate.c | 68

[PATCH rc5 04/32] target/avr: CPU class: Add memory menagement support

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This patch introduces three memory-management-related functions that will become part of AVR CPU class object. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris Si

[PATCH rc5 08/32] target/avr: Add defintions of AVR core types

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik AVR core types are: - avr1 - avr2 - avr25 - avr3 - avr31 - avr35 - avr4 - avr5 - avr51 - avr6 - avrtiny - xmega2 - xmega3 - xmega4 - xmega5 - xmega6 - xmega7 Each core type covers multiple AVR MCUs, mentioned in the comments before definiti

[PATCH rc5 05/32] target/avr: CPU class: Add migration support

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik Add migration-related functions of AVR CPU class object. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris Signed-off-by: Michael Rolnik Signed-off-by: Sarah Harr

[PATCH rc5 02/32] target/avr: Introduce basic CPU class object

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This patch introduces AVR CPU class object and its basic elements and functions. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris Signed-off-by: Michael Rolnik S

[PATCH rc5 00/32] target/avr merger

2020-02-06 Thread Aleksandar Markovic
From: Aleksandar Markovic This is the AVR port from Michael, release (merge) candidate 5. The series can be found also in this repository: https://github.com/AMarkovic/qemu-avr-merger-rc5 History: Since v4: - Alex tracing improvements (the only functional difference from v4) - Moving code be

[PATCH rc5 01/32] target/avr: Add basic parameters of the new platform

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This includes definitions of various basic parameters needed for integration of a new platform into QEMU. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris Signed-

[PATCH rc5 07/32] target/avr: Introduce enumeration AVRFeature

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This patch introduces enumeration "AVRFeature" that will be used for defining various AVR core types. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sarah Harris Signed-off-

[PATCH rc5 03/32] target/avr: CPU class: Add interrupt handling support

2020-02-06 Thread Aleksandar Markovic
From: Michael Rolnik This patch introduces functions avr_cpu_do_interrupt() and avr_cpu_exec_interrupt() that are part of AVR CPU class object. [AM: Split a larger AVR introduction patch into logical units] Suggested-by: Aleksandar Markovic Co-developed-by: Michael Rolnik Co-developed-by: Sara

Re: [PATCH v1 09/13] util/mmap-alloc: Implement resizable mmaps

2020-02-06 Thread Murilo Opsfelder Araújo
Hello, David. On Monday, February 3, 2020 3:31:21 PM -03 David Hildenbrand wrote: > Implement resizable mmaps. For now, the actual resizing is not wired up. > Introduce qemu_ram_mmap_resizable() and qemu_ram_mmap_resize(). Make > qemu_ram_mmap() a wrapper of qemu_ram_mmap_resizable(). > > Cc: "Mic

Re: [PATCH] Add support for a helper with 7 arguments

2020-02-06 Thread Richard Henderson
On 2/6/20 5:52 PM, Taylor Simpson wrote: > > >> -Original Message- >> From: Richard Henderson On Behalf Of Richard >> Henderson >> Sent: Thursday, February 6, 2020 9:35 AM >> To: Taylor Simpson ; qemu-devel@nongnu.org >> Cc: Paolo Bonzini >> Subject: Re: [PATCH] Add support for a helper

Re: [PATCH v2 3/4] m25p80: Improve command handling for unsupported commands

2020-02-06 Thread Philippe Mathieu-Daudé
On 2/6/20 7:32 PM, Guenter Roeck wrote: Whenever an unsupported command is encountered, the current code interprets each transferred byte as new command. Most of the time, those 'commands' are interpreted as new unknown commands. However, in rare cases, it may be that for example address or lengt

[PATCH v2] hw/core: Allow setting 'virtio-blk-device.scsi' property on OSX host

2020-02-06 Thread Philippe Mathieu-Daudé
Commit ed65fd1a2750 ("virtio-blk: switch off scsi-passthrough by default") changed the default value of the 'scsi' property of virtio-blk, which is only available on Linux hosts. It also added an unconditional compat entry for 2.4 or earlier machines. Trying to set this property on a pre-2.5 machi

[PULL 1/1] hw/vfio: Move the IGD quirk code to a separate file

2020-02-06 Thread Alex Williamson
From: Thomas Huth The IGD quirk code defines a separate device, the so-called "vfio-pci-igd-lpc-bridge" which shows up as a user-creatable device in all QEMU binaries that include the vfio code. This is a little bit unfortunate for two reasons: First, this device is completely useless in binaries

[PULL 0/1] VFIO update 2020-02-06

2020-02-06 Thread Alex Williamson
The following changes since commit 2021b7c9716cd579e20b4993ed75842f4e0deb34: Merge remote-tracking branch 'remotes/vivier2/tags/trivial-branch-pull-request' into staging (2020-02-06 12:57:54 +) are available in the Git repository at: git://github.com/awilliam/qemu-vfio.git tags/vfio-up

Re: VW ELF loader

2020-02-06 Thread Paolo Bonzini
On 07/02/20 00:23, Alexey Kardashevskiy wrote: >> Right, not unlike what you get with vof=on. :) I'm not against at all >> that idea. I just don't understand what you refer to below as (2). >> Does petitboot not have the problem because it kexecs the new kernel? > > Petitboot does not have this

Re: VW ELF loader

2020-02-06 Thread Paolo Bonzini
On 07/02/20 00:17, Alexey Kardashevskiy wrote: > This is a lot and what is exactly the benefit? My alternative does not > need drivers at all. Anything you put in the host is potential attack surface. Plus, you're not doing a different thing than anyone else and as you've found out it may be easy

Re: [PULL 20/59] target/i386: kvm: initialize microcode revision from KVM

2020-02-06 Thread Paolo Bonzini
On 07/02/20 00:24, Alex Williamson wrote: > Hey Paolo, > > My Windows 10 VM boot loops with this :-\ It seems to be related to > the CPU model. Now fails (host-passthrough): > > -cpu > host,hv-time,hv-relaxed,hv-vapic,hv-spinlocks=0x1fff,hv-vendor-id=KeenlyKVM,kvm=off Can you try adding ucode

Re: [PATCH v3 1/4] Add the NVMM vcpu API

2020-02-06 Thread Jared McNeill
Tested-by: Jared McNeill On Thu, 6 Feb 2020, Kamil Rytarowski wrote: From: Maxime Villard Adds support for the NetBSD Virtual Machine Monitor (NVMM) stubs and introduces the nvmm.h sysemu API for managing the vcpu scheduling and management. Signed-off-by: Maxime Villard Signed-off-by: Kami

Re: [PATCH v3 4/4] Add the NVMM acceleration enlightenments

2020-02-06 Thread Jared McNeill
Tested-by: Jared McNeill On Thu, 6 Feb 2020, Kamil Rytarowski wrote: From: Maxime Villard Implements the NVMM accelerator cpu enlightenments to actually use the nvmm-all accelerator on NetBSD platforms. Signed-off-by: Maxime Villard Signed-off-by: Kamil Rytarowski Reviewed-by: Sergio Lope

Re: [PATCH v3 3/4] Introduce the NVMM impl

2020-02-06 Thread Jared McNeill
Tested-by: Jared McNeill On Thu, 6 Feb 2020, Kamil Rytarowski wrote: From: Maxime Villard Implements the NetBSD Virtual Machine Monitor (NVMM) target. Which acts as a hypervisor accelerator for QEMU on the NetBSD platform. This enables QEMU much greater speed over the emulated x86_64 path's

Re: [PATCH v3 2/4] Add the NetBSD Virtual Machine Monitor accelerator.

2020-02-06 Thread Jared McNeill
Tested-by: Jared McNeill On Thu, 6 Feb 2020, Kamil Rytarowski wrote: From: Maxime Villard Introduces the configure support for the new NetBSD Virtual Machine Monitor that allows for hypervisor acceleration from usermode components on the NetBSD platform. Signed-off-by: Maxime Villard Signe

[PATCH v4 3/4 FIXUP] Introduce the NVMM impl

2020-02-06 Thread Kamil Rytarowski
From: Maxime Villard Implements the NetBSD Virtual Machine Monitor (NVMM) target. Which acts as a hypervisor accelerator for QEMU on the NetBSD platform. This enables QEMU much greater speed over the emulated x86_64 path's that are taken on NetBSD today. Signed-off-by: Maxime Villard Signed-off

Re: [PULL 20/59] target/i386: kvm: initialize microcode revision from KVM

2020-02-06 Thread Alex Williamson
On Thu, 23 Jan 2020 14:50:10 +0100 Paolo Bonzini wrote: > KVM can return the host microcode revision as a feature MSR. > Use it as the default value for -cpu host. > > Signed-off-by: Paolo Bonzini > Message-Id: <1579544504-3616-4-git-send-email-pbonz...@redhat.com> > Signed-off-by: Paolo Bonzin

Re: VW ELF loader

2020-02-06 Thread Alexey Kardashevskiy
On 06/02/2020 19:29, Paolo Bonzini wrote: > On 05/02/20 06:58, David Gibson wrote: >>> Yes, SLOF is big and slow. petitboot is not petit at all either, and >>> has the disadvantage that you have to find a way to run GRUB afterwards. >> Well, not usually. Petitboot parses grub configuration its

Re: VW ELF loader

2020-02-06 Thread Alexey Kardashevskiy
On 06/02/2020 19:27, Paolo Bonzini wrote: > On 05/02/20 07:06, David Gibson wrote: >> On Tue, Feb 04, 2020 at 12:26:32AM +0100, Paolo Bonzini wrote: >>> Il mar 4 feb 2020, 00:20 Alexey Kardashevskiy ha scritto: Speaking seriously, what would I put into the guest? >>> >>> Only things that w

[PATCH v2] docs/arm-cpu-features: Make kvm-no-adjvtime comment clearer

2020-02-06 Thread Philippe Mathieu-Daudé
The bold text sounds like 'knock knock'. Only bolding the second 'not' makes it easier to read. Fixes: dea101a1ae Signed-off-by: Philippe Mathieu-Daudé --- v2: Removed unrelated hunk --- docs/arm-cpu-features.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/arm-cpu-fe

Re: [PATCH] docs/arm-cpu-features: Make kvm-no-adjvtime comment clearer

2020-02-06 Thread Philippe Mathieu-Daudé
On 2/6/20 11:48 PM, Philippe Mathieu-Daudé wrote: The bold text sounds like 'knock knock'. Only bolding the second 'not' makes it easier to read. Signed-off-by: Philippe Mathieu-Daudé --- docs/arm-cpu-features.rst | 2 +- target/arm/kvm.c | 5 + 2 files changed, 2 insertions(+)

[PATCH] docs/arm-cpu-features: Make kvm-no-adjvtime comment clearer

2020-02-06 Thread Philippe Mathieu-Daudé
The bold text sounds like 'knock knock'. Only bolding the second 'not' makes it easier to read. Signed-off-by: Philippe Mathieu-Daudé --- docs/arm-cpu-features.rst | 2 +- target/arm/kvm.c | 5 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/arm-cpu-features.rs

Re: [RFC PATCH v2 5/5] target/arm/cpu: Add the kvm-no-adjvtime CPU property

2020-02-06 Thread Philippe Mathieu-Daudé
On 2/6/20 1:40 PM, Andrew Jones wrote: On Thu, Feb 06, 2020 at 01:08:53PM +0100, Philippe Mathieu-Daudé wrote: ... +/* KVM VCPU properties should be prefixed with "kvm-". */ +void kvm_arm_add_vcpu_properties(Object *obj) +{ +if (!kvm_enabled()) { This can't happen, right? Can we turn that

Re: [PATCH] travis.yml: Test the s390-ccw build, too

2020-02-06 Thread Philippe Mathieu-Daudé
On 2/6/20 9:25 PM, Thomas Huth wrote: Since we can now use a s390x host on Travis, we can also build and test the s390-ccw bios images there. For this we have to make sure that roms/SLOF is checked out, too, and then move the generated *.img files to the right location before running the tests.

Re: [PATCH] apic: Report current_count via 'info lapic'

2020-02-06 Thread Philippe Mathieu-Daudé
On 2/6/20 8:50 PM, Jan Kiszka wrote: From: Jan Kiszka This is helpful when debugging stuck guest timers. As we need apic_get_current_count for that, and it is really not emulation specific, move it to apic_common.c and export it. Signed-off-by: Jan Kiszka --- hw/intc/apic.c

Re: [PATCH v2 2/4] m25p80: Improve command handling for Jedec commands

2020-02-06 Thread Alistair Francis
On Thu, Feb 6, 2020 at 10:33 AM Guenter Roeck wrote: > > When requesting JEDEC data using the JEDEC_READ command, the Linux kernel > always requests 6 bytes. The current implementation only returns three > bytes, and interprets the remaining three bytes as new commands. > While this does not matte

Re: [PATCH v2 1/4] m25p80: Convert to support tracing

2020-02-06 Thread Alistair Francis
On Thu, Feb 6, 2020 at 10:33 AM Guenter Roeck wrote: > > While at it, add some trace messages to help debug problems > seen when running the latest Linux kernel. > > Signed-off-by: Guenter Roeck Reviewed-by: Alistair Francis Alistair > --- > v2: Print pointer to Flash data structure as flash

Re: Qemu 4.2.0 on Windows host

2020-02-06 Thread Philippe Mathieu-Daudé
Cc'ing Stefan who might know... On 2/8/20 1:42 PM, Jerry Geis wrote: I am trying to figure out how to boot a linux external USB disk from windows host ? I do this all the time on linux - simply -hda /dev/sdb But how do I reference the USB on Windows ? Thanks, Jerry

Re: [PULL 00/46] Python queue 2020-02-06

2020-02-06 Thread Eduardo Habkost
following changes since commit 418fa86dd465b4fd8394373cf83db8fa65d7611c: > > Merge remote-tracking branch 'remotes/stsquad/tags/pull-testing-040220-1' > into staging (2020-02-04 18:55:06 +) > > are available in the Git repository at: > > https://gitlab.com/philmd/qemu.git

[RFC PATCH v2 6/7] vfio-ccw: Refactor ccw irq handler

2020-02-06 Thread Eric Farman
Make it easier to add new ones in the future. Signed-off-by: Eric Farman --- Notes: v1->v2: - Make irq parameter unsigned [CH] - Remove extraneous %m from error_report calls [CH] hw/vfio/ccw.c | 57 --- 1 file changed, 41 insertions

  1   2   3   4   5   6   >