Re: [Qemu-devel] [PATCH v2 4/4] migration: Fail migration blocker for --only-migratble

2016-12-16 Thread Peter Maydell
On 16 December 2016 at 09:53, Ashijeet Acharya wrote: > migrate_add_blocker should rightly fail if the '--only-migratable' > option was specified and the device in use should not be able to > perform the action which results in an unmigratable VM. > > Make

Re: [Qemu-devel] [PATCH 2/2] vmxnet3: VMStatify rx/tx q_descr and int_state

2016-12-16 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (git) (dgilb...@redhat.com) wrote: > From: "Dr. David Alan Gilbert" > > Fairly simple mechanical conversion of all fields. > > TODO > The problem is vmxnet3-ring size/cell_size/next are declared as size_t > but written as 32bit. Oops, I should

[Qemu-devel] [for 2.9] balloon: Don't balloon roms

2016-12-16 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" A broken guest can specify physical addresses that correspond to any memory region, but it shouldn't be able to change ROM. Signed-off-by: Dr. David Alan Gilbert --- hw/virtio/trace-events | 2 ++

Re: [Qemu-devel] Making TCG configurable in system mode

2016-12-16 Thread Alvise Rigo
On Wed, Dec 14, 2016 at 10:51 PM, Paolo Bonzini wrote: > >> I am looking at the possibility to add a new QEMU configuration option >> to make TCG optional (in qemu-system-*). What I am exploring is a way >> to exclude any of the TCG code not needed by KVM from the QEMU

Re: [Qemu-devel] Making TCG configurable in system mode

2016-12-16 Thread Peter Maydell
On 16 December 2016 at 11:49, Alvise Rigo wrote: > On Wed, Dec 14, 2016 at 10:51 PM, Paolo Bonzini wrote: >> The hardest part is making sure that it doesn't bitrot, and it's hard >> because we don't have CI for architectures other than x86.

Re: [Qemu-devel] [PATCH v3 07/25] block: bdrv_get_full_backing_filename's ret. val.

2016-12-16 Thread Max Reitz
On 15.12.2016 17:39, Alberto Garcia wrote: > On Wed 30 Nov 2016 02:18:33 AM CET, Max Reitz wrote: >> int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options, >> const char *bdref_key, Error **errp) >> { >> -char *backing_filename =

Re: [Qemu-devel] [RFC] qmp: query-device-slots command

2016-12-16 Thread Eduardo Habkost
On Fri, Dec 16, 2016 at 11:37:00AM +0100, Markus Armbruster wrote: > Eduardo Habkost writes: > > > On Wed, Dec 14, 2016 at 09:11:10PM +0100, Markus Armbruster wrote: > >> Eduardo Habkost writes: > >> > >> > On Wed, Dec 14, 2016 at 04:34:04PM +0100,

[Qemu-devel] [RFC 1/3] nvic: Add CPU numebr property

2016-12-16 Thread marcin.krzeminski
From: Marcin Krzeminski In case of MultiCPU SoC M3 is not always CPU0. This commit add cpu_id property to allow set CPU number for NVIC model. Also address space that this used by NVIC is updated to mach CPU's one. Signed-off-by: Marcin Krzeminski

[Qemu-devel] [RFC 0/3] MultiCPU changes

2016-12-16 Thread marcin.krzeminski
From: Marcin Krzeminski Those are changes that I made to create SoC model with 2xCortexA9 and Cortex-M3. Generally all are done to allow move work further, not to upstreaming (especially patch 3). I would like to start discossion if those modification could be

Re: [Qemu-devel] [qemu patch V4 2/2] kvmclock: reduce kvmclock difference on migration

2016-12-16 Thread Eduardo Habkost
On Fri, Dec 16, 2016 at 11:03:33AM +0100, Paolo Bonzini wrote: > I'd like to make a few cleanups and add more documentation: > Looks good to me. Reviewed-by: Eduardo Habkost > diff --git a/hw/i386/kvm/clock.c b/hw/i386/kvm/clock.c > index eacc9dc..f767ea9 100644 > ---

Re: [Qemu-devel] [PATCH v3 07/25] block: bdrv_get_full_backing_filename's ret. val.

2016-12-16 Thread Alberto Garcia
On Fri 16 Dec 2016 02:26:29 PM CET, Max Reitz wrote: >>> int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options, >>> const char *bdref_key, Error **errp) >>> { >>> -char *backing_filename = g_malloc0(PATH_MAX); >>> +char *backing_filename =

[Qemu-devel] [RFC 2/3] ARM: boot: Add option to skip FDT memory node update

2016-12-16 Thread marcin.krzeminski
From: Marcin Krzeminski When Qemu boots directly ARM kernel the memory node in device tree is automatically updated to mach guest RAM size assigned to Qemu. This commit allow use case when user do not want to pass all guest RAM to linux kernel by skipping device tree

[Qemu-devel] [RFC 3/3] exec: Allow to change Address Space from board level

2016-12-16 Thread marcin.krzeminski
From: Marcin Krzeminski By introduction of CPUAddressSpace table it is not possible to change address space for CPU from board code. In my case Cortex-M3 core has it own address space that is created at board level, then updated by changing cpu->as. For current code

[Qemu-devel] [PATCH 2/2] block: m25p80: Introduce Die Erase command

2016-12-16 Thread marcin.krzeminski
From: Marcin Krzeminski Big flash chips (like mt25qu01g) are consisted from dies. Because of that some manufactures remove support for Chip Erase giving Die Erase command instead.To avoid unnecessary code complication, support for chip erase for mt25qu01g is not

Re: [Qemu-devel] [PATCH v7 RFC] block/vxhs: Initial commit to add Veritas HyperScale VxHS block device support

2016-12-16 Thread Stefan Hajnoczi
On Fri, Dec 16, 2016 at 1:42 AM, Buddhi Madhav wrote: > Does this authentication scheme works? > > 1) Pass the encrypted password to qemu-kvm as follows: > > # . /qemu-io --object secret,id=secmaster0,format=base64,file=key.b64 >--object >

[Qemu-devel] [PATCH 1/1] scsi-disk: passthrough VERIFY command

2016-12-16 Thread Junlian Bell
When a scsi-disk object receives VERIFY command with BYTCHK bit being zero, scsi_block_is_passthrough returns false and finally makes req being proceeded by scsi_block_dma_command. Because scsi_block_dma_command has removed process of VERIFY, QEMU will abort in this function. This patch makes all

Re: [Qemu-devel] [PATCH 07/11] hw/arm/virt: pass VirtMachineState instead of VirtGuestInfo

2016-12-16 Thread Igor Mammedov
On Thu, 15 Dec 2016 17:24:05 +0100 Andrew Jones wrote: > On Thu, Dec 15, 2016 at 03:45:55PM +0100, Igor Mammedov wrote: > > On Tue, 13 Dec 2016 22:45:18 +0100 > > Andrew Jones wrote: > > > > > Only two functions take VirtGuestInfo parameters. Now that

Re: [Qemu-devel] regression in 2.8: unable to exit screen grab in SDL mode

2016-12-16 Thread Howard Spoelstra
On Fri, Dec 16, 2016 at 10:00 AM, Kevin Wolf wrote: > Am 16.12.2016 um 09:26 hat Thomas Huth geschrieben: >> On 15.12.2016 20:19, Michael S. Tsirkin wrote: >> > On Thu, Dec 15, 2016 at 09:15:27PM +0200, Michael S. Tsirkin wrote: >> >> On Thu, Dec 15, 2016 at 05:25:50PM +0100,

Re: [Qemu-devel] regression in 2.8: unable to exit screen grab in SDL mode

2016-12-16 Thread Kevin Wolf
Am 15.12.2016 um 23:30 hat Michael S. Tsirkin geschrieben: > On Thu, Dec 15, 2016 at 05:25:50PM +0100, Gerd Hoffmann wrote: > > Hi, > > > > > > > > The problem always reproduces for me: > > > > > > - start qemu with -sdl > > > > > > - wait for guest to boot > > > > > > - click anywhere within

Re: [Qemu-devel] [RFC] qmp: query-device-slots command

2016-12-16 Thread Markus Armbruster
Laine Stump writes: > On 12/15/2016 05:12 AM, Marcel Apfelbaum wrote: >> On 12/14/2016 10:10 PM, Laine Stump wrote: >>> On 12/14/2016 12:17 PM, Marcel Apfelbaum wrote: Be aware that 1 slot doesn't necessarily refer to only one device, we can have a multi-function

Re: [Qemu-devel] regression in 2.8: unable to exit screen grab in SDL mode

2016-12-16 Thread Thomas Huth
On 15.12.2016 20:19, Michael S. Tsirkin wrote: > On Thu, Dec 15, 2016 at 09:15:27PM +0200, Michael S. Tsirkin wrote: >> On Thu, Dec 15, 2016 at 05:25:50PM +0100, Gerd Hoffmann wrote: >>> Hi, >>> >>> The problem always reproduces for me: >>> - start qemu with -sdl >>> - wait for guest

Re: [Qemu-devel] [PATCH v3] audio: es1370: add exit function

2016-12-16 Thread Marc-André Lureau
On Thu, Dec 15, 2016 at 5:32 AM Li Qiang wrote: > From: Li Qiang > > Currently the es1370 device emulation doesn't have a exit function, > hot unplug this device will leak some memory. Add a exit function to > avoid this. > > Signed-off-by: Li Qiang

Re: [Qemu-devel] [PATCH for-2.9 00/10] pc: acpi: memory hotplug cleanup/consolidation

2016-12-16 Thread Igor Mammedov
On Tue, 6 Dec 2016 00:32:19 +0100 Igor Mammedov wrote: > Series cleanups and consolidates scattered memory hotplug > code so it could be easily reused by ARM target later. > > As result: > * added memory hotplug variant to bios tables test > * all ACPI related parts of

[Qemu-devel] [Bug 1068900] Re: Thread cancellation broken in app-level emulation

2016-12-16 Thread Thomas Huth
The URL from comment #1 is unfortunately not valid anymore. If this issue is still pending, could you please post your patch again to the qemu-devel mailing list to get it discussed and included? Thanks! ** Changed in: qemu Status: New => Incomplete -- You received this bug notification

Re: [Qemu-devel] regression in 2.8: unable to exit screen grab in SDL mode

2016-12-16 Thread Liviu Ionescu
> On 16 Dec 2016, at 10:26, Thomas Huth wrote: > > ... so I would recommend to keep the SDL code in QEMU. SDL 1.2 is largely deprecated now, when I upgraded to macOS 10.12 I suddenly started to have various problems. so I decided to upgrade GNU ARM Eclipse to SDL 2. if

Re: [Qemu-devel] regression in 2.8: unable to exit screen grab in SDL mode

2016-12-16 Thread Kevin Wolf
Am 16.12.2016 um 09:26 hat Thomas Huth geschrieben: > On 15.12.2016 20:19, Michael S. Tsirkin wrote: > > On Thu, Dec 15, 2016 at 09:15:27PM +0200, Michael S. Tsirkin wrote: > >> On Thu, Dec 15, 2016 at 05:25:50PM +0100, Gerd Hoffmann wrote: > Do we fix this or disable SDL altogether? > >>> >

Re: [Qemu-devel] [PATCH] vnc: track LED state separately

2016-12-16 Thread Pierre Ossman
On 15/12/16 17:41, Gerd Hoffmann wrote: -caps = ledstate & QEMU_CAPS_LOCK_LED ? 1 : 0; -num = ledstate & QEMU_NUM_LOCK_LED ? 1 : 0; -scr = ledstate & QEMU_SCROLL_LOCK_LED ? 1 : 0; +if (ledstate != vd->ledstate) +return; Hmm? Shouldn't that be (ledstate ==

Re: [Qemu-devel] [PATCH v7 3/5] IOMMU: enable intel_iommu map and unmap notifiers

2016-12-16 Thread Liu, Yi L
> From: "Aviv Ben-David" > > Adds a list of registered vtd_as's to intel iommu state to save > iteration over each PCI device in a search of the corrosponding domain. > > Signed-off-by: Aviv Ben-David > --- > hw/i386/intel_iommu.c | 94 >

[Qemu-devel] [Bug 1042561] Re: Guest has no "xsave" feature with parameter "-cpu qemu64, +xsave" in qemu command line.

2016-12-16 Thread Thomas Huth
** Changed in: qemu Status: New => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1042561 Title: Guest has no "xsave" feature with parameter "-cpu qemu64,+xsave" in qemu command

[Qemu-devel] [Bug 1063807] Re: KVM crashes when booting a PointSec encrypted Windows 7

2016-12-16 Thread Thomas Huth
Since this is very likely rather a KVM kernel bug than a QEMU userspace bug, could you please report it to the KVM mailing list / bug tracker instead (see http://www.linux-kvm.org/page/Bugs)? Thanks! ** Changed in: qemu Status: New => Invalid -- You received this bug notification because

Re: [Qemu-devel] [RFC] PCI/migration merge vmstate_pci_device and vmstate_pcie_device

2016-12-16 Thread Dr. David Alan Gilbert
* Michael S. Tsirkin (m...@redhat.com) wrote: > On Wed, Dec 14, 2016 at 07:58:29PM +, Dr. David Alan Gilbert (git) wrote: > > From: "Dr. David Alan Gilbert" > > > > The vmstate_pci_device and vmstate_pcie_devices differ > > just in the size of one buffer; combine the two

Re: [Qemu-devel] regression in 2.8: unable to exit screen grab in SDL mode

2016-12-16 Thread Gerd Hoffmann
> > [ 2.6 good, 2.7, 2.8 bad ] > > It doesn't reproduce here. There must be some other factor which is > > needed to trigger this. What desktop you are using? gnome? kde? > > something else? Xorg or wayland? > > > > Can you try to bisect it? > > > > cheers, > > Gerd > > > Looks like

[Qemu-devel] [PATCH v3] bugfix: vm halt when in reset looping

2016-12-16 Thread hangaohuai
reset mc146818rtc device when RESET event happens. Fix the problem: 1. Guest boot the second cpu, set CMOS_RESET_CODE 0x0a to protect selfboot; 2. VM being reset by others, hmp_system_reset; 3. seabios resume check the CMOS_RESET_CODE, if 0x0a, jump to the BDA resume execution by jump

[Qemu-devel] [Bug 922076] Re: doesn't clear screen on boot

2016-12-16 Thread Thomas Huth
** Changed in: qemu Status: Incomplete => Triaged -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/922076 Title: doesn't clear screen on boot Status in QEMU: Triaged Bug description:

Re: [Qemu-devel] [PATCH v3] audio: ac97: add exit function

2016-12-16 Thread Marc-André Lureau
On Thu, Dec 15, 2016 at 5:30 AM Li Qiang wrote: > From: Li Qiang > > Currently the ac97 device emulation doesn't have a exit function, > hot unplug this device will leak some memory. Add a exit function to > avoid this. > > Signed-off-by: Li Qiang

Re: [Qemu-devel] [for 2.9] balloon: Don't balloon roms

2016-12-16 Thread Paolo Bonzini
On 16/12/2016 12:41, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > A broken guest can specify physical addresses that correspond > to any memory region, but it shouldn't be able to change ROM. > > Signed-off-by: Dr. David Alan Gilbert

Re: [Qemu-devel] [PATCH v4 5/8] hw/i2c: Tidy up NULL check for i2c slave init callbacks

2016-12-16 Thread Peter Maydell
On 15 December 2016 at 05:48, Alastair D'Silva wrote: > From: Alastair D'Silva > > Remove unnecessary syntax > > Signed-off-by: Alastair D'Silva > --- > hw/i2c/core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

Re: [Qemu-devel] [PATCH] x86: implement la57 paging mode

2016-12-16 Thread Paolo Bonzini
On 15/12/2016 01:13, Kirill A. Shutemov wrote: > The new paging more is extension of IA32e mode with more additional page > table level. > > It brings support of 57-bit vitrual address space (128PB) and 52-bit > physical address space (4PB). > > The structure of new page table level is

Re: [Qemu-devel] [PATCH v4 1/8] arm: Uniquely name imx25 I2C buses.

2016-12-16 Thread Peter Maydell
On 15 December 2016 at 05:48, Alastair D'Silva wrote: > From: Alastair D'Silva > > The imx25 chip provides 3 i2c buses, but they have all been named > "i2c", which makes it difficult to predict which bus a device will > be connected to when specified

Re: [Qemu-devel] [PATCH v3] target-arm: Add VBAR support to ARM1176 CPUs

2016-12-16 Thread Peter Maydell
On 15 December 2016 at 14:09, Cédric Le Goater wrote: > ARM1176 CPUs have TrustZone support and can use the Vector Base > Address Register, but currently, qemu only adds VBAR support to ARMv7 > CPUs. Fix this by adding a new feature ARM_FEATURE_VBAR which can used > for ARMv7 and

Re: [Qemu-devel] [PATCH] x86: implement la57 paging mode

2016-12-16 Thread Kirill A. Shutemov
On Fri, Dec 16, 2016 at 01:59:36PM +0100, Paolo Bonzini wrote: > > > On 15/12/2016 01:13, Kirill A. Shutemov wrote: > > The new paging more is extension of IA32e mode with more additional page > > table level. > > > > It brings support of 57-bit vitrual address space (128PB) and 52-bit > >

Re: [Qemu-devel] [PATCH v5 2/3] utils: Add helper to read arm MIDR_EL1 register

2016-12-16 Thread Peter Maydell
On 7 December 2016 at 17:06, wrote: > From: Vijaya Kumar K > > Add helper API to read MIDR_EL1 registers to fetch > cpu identification information. This helps in > adding errata's and architecture specific features. > > This is implemented only

Re: [Qemu-devel] [Qemu-block] [PATCH v1 1/1] iotests: Fix a problem in common.filter

2016-12-16 Thread Eric Blake
[adding qemu-devel, ALL patches should include the main list] On 12/15/2016 11:47 PM, QingFeng Hao wrote: > If TEST_DIR is set to /tmp, test case 144 will fail. The reason is that > TEST_DIR duplicates with 144's test image name tmp.qcow2. s/duplicates with/resembles/ > when 144 is testing

Re: [Qemu-devel] [PATCH 09/21] qcow2: add .bdrv_load_autoloading_dirty_bitmaps

2016-12-16 Thread Max Reitz
On 14.12.2016 16:54, Vladimir Sementsov-Ogievskiy wrote: > 07.12.2016 23:51, Max Reitz wrote: >> On 22.11.2016 18:26, Vladimir Sementsov-Ogievskiy wrote: >>> Auto loading bitmaps are bitmaps in Qcow2, with the AUTO flag set. They >>> are loaded when the image is opened and become BdrvDirtyBitmaps

Re: [Qemu-devel] [PATCH v2 4/7] linux-user: Fix fcnt

2016-12-16 Thread Peter Maydell
On 24 November 2016 at 16:08, Lena Djokic wrote: Making the subject line "linux-user: fix F_GETSIG and F_SETSIG fcntls" would be a bit more precise about what we're fixing here and I think that will be helpful for people looking back in the git log later. > F_GETSIG and

Re: [Qemu-devel] [RFC 0/3] MultiCPU changes

2016-12-16 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Type: series Subject: [Qemu-devel] [RFC 0/3] MultiCPU changes Message-id: 1481894559-13974-1-git-send-email-marcin.krzemin...@nokia.com === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1

Re: [Qemu-devel] [RFC 1/3] nvic: Add CPU numebr property

2016-12-16 Thread Peter Maydell
On 16 December 2016 at 13:22, wrote: > From: Marcin Krzeminski > > In case of MultiCPU SoC M3 is not always CPU0. > This commit add cpu_id property to allow set CPU > number for NVIC model. Also address space that this used > by NVIC is

Re: [Qemu-devel] [PATCH 07/21] qcow2: add bitmaps extension

2016-12-16 Thread Max Reitz
On 14.12.2016 13:23, Vladimir Sementsov-Ogievskiy wrote: > 07.12.2016 21:25, Max Reitz wrote: >> On 22.11.2016 18:26, Vladimir Sementsov-Ogievskiy wrote: >>> Add bitmap extension as specified in docs/specs/qcow2.txt. >>> For now, just mirror extension header into Qcow2 state and check >>>

Re: [Qemu-devel] Lock contention in QEMU

2016-12-16 Thread Weiwei Jia
On Fri, Dec 16, 2016 at 4:48 AM, Stefan Hajnoczi wrote: > On Thu, Dec 15, 2016 at 11:04:23AM -0500, Weiwei Jia wrote: >> On Thu, Dec 15, 2016 at 3:06 AM, Stefan Hajnoczi wrote: >> > On Thu, Dec 15, 2016 at 12:17:09AM -0500, Weiwei Jia wrote: >> >> BTW, do

Re: [Qemu-devel] [PATCH v2 7/7] linux-user: Fix mq_open

2016-12-16 Thread Peter Maydell
On 24 November 2016 at 16:08, Lena Djokic wrote: > If fourth argument is NULL it should be passed without > using lock_user function which would, in that case, return > EFAULT, and system call supports passing NULL as fourth argument. > > Signed-off-by: Lena Djokic

Re: [Qemu-devel] [PATCH v2 3/7] linux-user: Fix flock definition for mips64

2016-12-16 Thread Peter Maydell
On 24 November 2016 at 16:08, Lena Djokic wrote: > Mips64 uses generic flock structure. > See /arch/mips/include/uapi/asm/fcntl.h#L63 for reference. > > Signed-off-by: Lena Djokic > --- > linux-user/syscall_defs.h | 2 +- > 1 file changed, 1

Re: [Qemu-devel] Making TCG configurable in system mode

2016-12-16 Thread Alex Bennée
Laurent Vivier writes: > On 14/12/2016 20:30, Alvise Rigo wrote: >> Hi all, >> >> I am looking at the possibility to add a new QEMU configuration option >> to make TCG optional (in qemu-system-*). What I am exploring is a way >> to exclude any of the TCG code not needed by

Re: [Qemu-devel] [PATCH v2 5/7] linux-user: Fix readahead

2016-12-16 Thread Peter Maydell
On 24 November 2016 at 16:08, Lena Djokic wrote: > Calculation of 64-bit offset was not correct for all cases. > > Signed-off-by: Lena Djokic > --- > linux-user/syscall.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [Qemu-devel] [PATCH v2 6/7] linux-user: Fix syslog

2016-12-16 Thread Peter Maydell
On 24 November 2016 at 16:08, Lena Djokic wrote: > Third argument represents lenght not second. typo: "length" > If second argument is NULL it should be passed without > using lock_user function which would, in that case, return > EFAULT, and system call supports passing

Re: [Qemu-devel] [PATCH v2 2/7] linux-user: Fix inotify_init1 support

2016-12-16 Thread Peter Maydell
On 24 November 2016 at 16:08, Lena Djokic wrote: > This commit adds necessary conversion of argument passed to inotify_init1. > inotify_init1 flags can be IN_NONBLOCK and IN_CLOEXEC which rely on O_NONBLOCK > and O_CLOEXEC and those can have different values on different

[Qemu-devel] [PATCH 1/2] block: m25p80: Add Quad Page Program 4byte version op

2016-12-16 Thread marcin.krzeminski
From: Marcin Krzeminski Some flash chips has additional page program opcode that takes only 4 byte address. This commit adds support for such command in Qemu. Signed-off-by: Marcin Krzeminski --- hw/block/m25p80.c | 4 1 file

[Qemu-devel] [PATCH] smbios: stop ignoring command line options for TARGET_ARM

2016-12-16 Thread Leif Lindholm
Commit c30e1565 ("smbios: implement smbios support for mach-virt") enabled automatic generation of SMBIOS tables for TARGET_ARM, and actually provides data for the "virt" machine. However, do_smbios_option() still had an #ifdef TARGET_I386, preventing any -smbios command line options from being

Re: [Qemu-devel] [PATCH] smbios: stop ignoring command line options for TARGET_ARM

2016-12-16 Thread no-reply
Hi, Your series seems to have some coding style problems. See output below for more information: Type: series Subject: [Qemu-devel] [PATCH] smbios: stop ignoring command line options for TARGET_ARM Message-id: 20161216152319.12494-1-leif.lindh...@linaro.org === TEST SCRIPT BEGIN ===

[Qemu-devel] Issue with librte_vhost backed virtio and device plug/unplug

2016-12-16 Thread Osman, Dahir
Hi, We are using dpdk's librte_vhost for the vhost-user backend of Virtio. If the guest's memory map changes after the virtio device was started, qemu can send the vhost-user backend a VHOST_USER_SET_MEM_TABLE message. We observed this case in the following scenarios: - We have a PCI

Re: [Qemu-devel] [PATCH kernel v5 0/5] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-12-16 Thread Andrea Arcangeli
On Fri, Dec 16, 2016 at 01:12:21AM +, Li, Liang Z wrote: > There still exist the case if the MAX_ORDER is configured to a large value, > e.g. 36 for a system > with huge amount of memory, then there is only 28 bits left for the pfn, > which is not enough. Not related to the balloon but how

Re: [Qemu-devel] [PATCH] virtio: fix vring->inuse recalc after migr

2016-12-16 Thread Halil Pasic
On 12/16/2016 11:25 AM, Stefan Hajnoczi wrote: > On Thu, Dec 15, 2016 at 04:43:30PM +0100, Halil Pasic wrote: >> Correct recalculation of vring->inuse after migration for >> the corner case where the avail_idx has already wrapped >> but used_idx not yet. >> >> Signed-off-by: Halil Pasic

[Qemu-devel] [PATCH for-2.9 v3] qapi: add explicit null to string input and output visitors

2016-12-16 Thread Greg Kurz
This may be used for deprecated object properties that are kept for backwards compatibility. Signed-off-by: Greg Kurz --- v3: - input visitor to error out if !siv->string v2: - input visitor to reject non-empty strings --- qapi/string-input-visitor.c | 11 +++

Re: [Qemu-devel] [PATCH v2 1/7] linux-user: Add fanotify implementation

2016-12-16 Thread Peter Maydell
On 24 November 2016 at 16:08, Lena Djokic wrote: > This commit adds implementation of fanotify_init and fanotify_mark. > Second argument for fanotify_init needs conversion because of flags > which can be FAN_NONBLOCK and FAN_CLOEXEC which rely on O_NONBLOCK > and O_CLOEXEC

Re: [Qemu-devel] Nesting QEMU Question

2016-12-16 Thread John Snow
On 12/14/2016 10:03 PM, Joey Connelly wrote: > Hey QEMU dev group, > > I have a few questions related to nesting QEMU processes, but first here is > my system setup: > > > >- *HOST MACHINE:* GNU/Linux release 4.5.5 (KVM version follows), Distro >Fedora 24, x86_64 arch, supports Intel

Re: [Qemu-devel] [RISU PATCH v3 06/10] risu_aarch64: it's -> it is

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: > Signed-off-by: Alex Bennée > --- > risu_aarch64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/risu_aarch64.c b/risu_aarch64.c > index 7f9f612..8e3539e 100644 > ---

Re: [Qemu-devel] [RFC PATCH 0/4] FTGMAC100 model for the Aspeed SoCs

2016-12-16 Thread Peter Maydell
On 29 November 2016 at 17:41, Cédric Le Goater wrote: > The Aspeed SoCs AST2400 and AST2500 have two FTGMAC100 ethernet > controllers. This serie proposes a model for this device and a way to > customize the bit definitions which are slightly different from the > Faraday

Re: [Qemu-devel] [PATCH v1 0/2] Add Atmel I2C TPM AT97SC3204T emulated device

2016-12-16 Thread Peter Maydell
(added a couple of people to cc who might have an opinion on the i2c protocol questions below) On 29 November 2016 at 19:30, Fabio Urquiza wrote: > ### Overview ### > > The TPM passthrough feature allow a developer to test TPM functionalities, > like Measure Boot, without the

Re: [Qemu-devel] [RISU PATCH v3 02/10] aarch64: add hand-coded risu skeleton for directed testing

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: > Sometimes you want absolute control over your test set-up to feed > explicit values into the test. This started as an experiment but might > be useful for further developing tests. > > Signed-off-by: Alex Bennée

Re: [Qemu-devel] Is block_save_iterate() dead code? (was: migration: Fix return code of ram_save_iterate() )

2016-12-16 Thread Dr. David Alan Gilbert
* Thomas Huth (th...@redhat.com) wrote: > On 18.11.2016 09:13, Thomas Huth wrote: > > On 17.11.2016 04:45, David Gibson wrote: > >> On Mon, Nov 14, 2016 at 07:34:59PM +0100, Juan Quintela wrote: > >>> Thomas Huth wrote: > qemu_savevm_state_iterate() expects the iterators to

Re: [Qemu-devel] [RFC PATCH 0/4] FTGMAC100 model for the Aspeed SoCs

2016-12-16 Thread Cédric Le Goater
On 12/16/2016 05:48 PM, Peter Maydell wrote: > On 29 November 2016 at 17:41, Cédric Le Goater wrote: >> The Aspeed SoCs AST2400 and AST2500 have two FTGMAC100 ethernet >> controllers. This serie proposes a model for this device and a way to >> customize the bit definitions which

Re: [Qemu-devel] [RISU PATCH v3 01/10] risu: a bit more verbosity when running

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: > Before this is could seem a little quite when running as you had no > indication stuff was happening (or how fast). I only dump on the master > side as I want to minimise the amount of qemu logs to sift through. Yeah, more

Re: [Qemu-devel] [RISU PATCH v3 07/10] risugen: remove grocer's apostrophe from REs

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: > This also fixes perl-modes confusion about escaped strings. Missing apostrophe: should be "perl-mode's" :-) > > Signed-off-by: Alex Bennée Applied to risu master with that fixed; thanks. -- PMM

Re: [Qemu-devel] [RISU PATCH v3 04/10] risu: add simple trace and replay support

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: > This adds a very dumb and easily breakable trace and replay support. In > --master mode the various risu ops trigger a write of register/memory > state into a binary file which can be played back to an apprentice. >

[Qemu-devel] [PATCH 02/26] linux-user: Support stack-grows-up in elfload.c

2016-12-16 Thread Richard Henderson
HPPA is a (the) stack-grows-up target, and supporting that requires rearranging how we compute addresses while laying out the initial program stack. In addition, hppa32 requires 64-byte stack alignment so parameterize that as well. Cc: Riku Voipio Signed-off-by: Richard

[Qemu-devel] [PATCH 12/26] linux-user: Add HPPA definitions to syscall_defs.h

2016-12-16 Thread Richard Henderson
Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/syscall_defs.h | 131 +- 1 file changed, 130 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index

[Qemu-devel] [PATCH 03/26] linux-user: Handle TIOCSTART and TIOCSTOP

2016-12-16 Thread Richard Henderson
From: Helge Deller Some architectures (ppc, alpha, sparc, parisc, sh and xtensa) define the BSD TIOCSTART and TIOCSTOP ioctls in their kernel headers to provide compatibility to other operating systems. Those ioctls are not implemented in Linux, nevertheless, bash will use this

[Qemu-devel] [PATCH 25/26] target-hppa: Implement system and memory-management insns

2016-12-16 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-hppa/helper.h| 3 + target-hppa/op_helper.c | 10 +++ target-hppa/translate.c | 206 3 files changed, 219 insertions(+) diff --git a/target-hppa/helper.h b/target-hppa/helper.h

Re: [Qemu-devel] [Bug 906221] Re: USBDEVFS_CLEAR_HALT stall with USB-CDROM qemu-1.0

2016-12-16 Thread Erik Rull
Meanwhile it works. Thomas Huth wrote: > Triaging old bug tickets ... Can you still reproduce this problem with > the latest version of QEMU and the latest version of libusb? If so, > could you please also provide the command line options that you used to > start QEMU? > > ** Changed in: qemu >

[Qemu-devel] [PATCH 26/26] target-hppa: Implement floating-point insns

2016-12-16 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-hppa/helper.h| 55 target-hppa/op_helper.c | 394 ++ target-hppa/translate.c | 728 3 files changed, 1177 insertions(+) diff --git

Re: [Qemu-devel] [RFC PATCH v2 6/8] migration/vmstate: split up vmstate_base_addr

2016-12-16 Thread Dr. David Alan Gilbert
* Halil Pasic (pa...@linux.vnet.ibm.com) wrote: > > > On 12/15/2016 02:29 PM, Dr. David Alan Gilbert wrote: > >> +vmstate_handle_alloc(first_elem, field, opaque); > >> +if (field->flags & VMS_POINTER) { > >> +first_elem = *(void **)first_elem; > >> +

Re: [Qemu-devel] [RISU PATCH v3 00/10] Record/payback patches

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: > I did a bunch of tweaking to see if I could abstract the hackage for > record/replay a bit more. With a little bit of light re-factoring of > the send and recv functions I can move all the specific send/recv > logic into

[Qemu-devel] [PATCH 14/26] linux-user: Add HPPA target_signal.h and target_cpu.h

2016-12-16 Thread Richard Henderson
The cpu.h structure that these manipulate hasn't been defined yet, but we haven't enabled compilation yet either. Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/hppa/target_cpu.h| 35 +++

[Qemu-devel] [PATCH 13/26] linux-user: Add HPPA target_structs.h

2016-12-16 Thread Richard Henderson
Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/hppa/target_structs.h | 54 1 file changed, 54 insertions(+) create mode 100644 linux-user/hppa/target_structs.h diff --git

[Qemu-devel] [PATCH 17/26] target-hppa: Add softfloat specializations

2016-12-16 Thread Richard Henderson
Like the original MIPS, HPPA has the MSB of an SNaN set. However, it has different rules for silencing an SNaN: (1) msb is cleared and (2) msb-1 must be set if the fraction is now zero, and (implementation defined) may be set always. I haven't checked real hardware but chose the set always

[Qemu-devel] [PATCH 23/26] target-hppa: Implement shifts and deposits

2016-12-16 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-hppa/translate.c | 309 1 file changed, 309 insertions(+) diff --git a/target-hppa/translate.c b/target-hppa/translate.c index 14fe4bb..093a65e 100644 --- a/target-hppa/translate.c +++

Re: [Qemu-devel] [RISU PATCH v3 03/10] risu: paramterise send/receive functions

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: ("parameterise" in subject) > This is a precursor to record/playback support. Instead of passing the > socket fd we now pass helper functions for reading/writing and > responding. This will allow us to do the rest of the

Re: [Qemu-devel] [RISU PATCH v3 05/10] risu: add support compressed tracefiles

2016-12-16 Thread Peter Maydell
On 9 December 2016 at 11:48, Alex Bennée wrote: > This uses the magic of zlib's gzread/write interface to wrap the > tracefile in compression. The code changes are tiny. I spent more time > messing about with the configure/linker stuff to auto-detect bits. > >

[Qemu-devel] [PATCH 20/26] target-hppa: Implement basic arithmetic

2016-12-16 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-hppa/helper.h| 2 + target-hppa/op_helper.c | 23 ++ target-hppa/translate.c | 882 3 files changed, 907 insertions(+) diff --git a/target-hppa/helper.h b/target-hppa/helper.h

[Qemu-devel] [PATCH 16/26] linux-user: Add HPPA startup and main loop

2016-12-16 Thread Richard Henderson
Including support for the atomic memory op syscalls. Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/elfload.c | 24 +++ linux-user/main.c| 172 +++ 2 files changed, 196 insertions(+)

[Qemu-devel] [PATCH 19/26] target-hppa: Add nullification framework

2016-12-16 Thread Richard Henderson
The HPPA cpu has a unique form of predicated execution in which almost any instruction can set the PSW[N] (or "nullify") bit, which suppresses execution (and even decoding) of the following instruction. Execution of a nullified insn clears the PSW[N] bit. This adds a generic framework for

[Qemu-devel] [PATCH 08/26] linux-user: Add HPPA socket.h definitions

2016-12-16 Thread Richard Henderson
Split this out into a "cpu/sockbits.h" file now, like we ought to do for all of the other targets. Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/hppa/sockbits.h | 97 ++ linux-user/socket.h

[Qemu-devel] [PATCH 06/26] linux-user: Handle more IPV6 sockopts

2016-12-16 Thread Richard Henderson
All of the ones added have an "int" parameter that needs no more adjustment to pass on to the host. Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/syscall.c | 29 +++-- 1 file changed, 27 insertions(+), 2

[Qemu-devel] [PATCH 09/26] linux-user: Add HPPA syscall numbers

2016-12-16 Thread Richard Henderson
Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/hppa/syscall_nr.h | 353 +++ 1 file changed, 353 insertions(+) create mode 100644 linux-user/hppa/syscall_nr.h diff --git

[Qemu-devel] [PATCH 15/26] linux-user: Add HPPA signal handling

2016-12-16 Thread Richard Henderson
Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/signal.c | 191 +++- 1 file changed, 190 insertions(+), 1 deletion(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index

[Qemu-devel] [PATCH 10/26] linux-user: Add HPPA termbits.h

2016-12-16 Thread Richard Henderson
Cc: Riku Voipio Signed-off-by: Richard Henderson --- linux-user/hppa/termbits.h | 219 + 1 file changed, 219 insertions(+) create mode 100644 linux-user/hppa/termbits.h diff --git a/linux-user/hppa/termbits.h

[Qemu-devel] [PATCH 24/26] target-hppa: Implement loads and stores

2016-12-16 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-hppa/helper.h| 3 + target-hppa/op_helper.c | 78 ++ target-hppa/translate.c | 618 3 files changed, 699 insertions(+) diff --git a/target-hppa/helper.h

[Qemu-devel] [PATCH 22/26] target-hppa: Implement linux-user gateway page

2016-12-16 Thread Richard Henderson
For linux, page 0 is mapped as an execute-only gateway. A gateway page is a special bit in the page table that allows a B,GATE insn within that page to raise processor permissions. This is how system calls are implemented for HPPA. Rather than actually map anything here, or handle permissions

[Qemu-devel] [PATCH 18/26] target-hppa: Add framework and enable compilation

2016-12-16 Thread Richard Henderson
This is just about the minimum required to enable compilation without actually executing any instructions. This contains the HPPACPU structure and the required callbacks, the gdbstub, the basic translation loop, and a translate_one function that always results in an illegal instruction.

[Qemu-devel] [PATCH 04/26] linux-user: Add SIOCGPGRP, SIOCGSTAMP, SIOCGSTAMPNS

2016-12-16 Thread Richard Henderson
From: Helge Deller Mirror syscall_defs.h for the element type of struct timeval and struct timespec, even though that's not 100% accurate for each guest. Cc: Riku Voipio Signed-off-by: Helge Deller [rth: Changed the MK_ARRAY types as per

[Qemu-devel] [PATCH 00/26] New hppa-linux-user target

2016-12-16 Thread Richard Henderson
This is a linux-user only port, emulating a 32-bit only version of a pa-2.0 cpu. This is good enough to do well with both the gcc and glibc testsuites. Helge Deller has provided invaluable assistance testing with a more complete debian chroot. What's missing: * Space registers. Since Linux

  1   2   >