Re: [Qemu-devel] [RFC] qemu: Add virtio pmem device

2018-04-08 Thread David Hildenbrand
On 09.04.2018 05:26, Stefan Hajnoczi wrote: > On Thu, Apr 05, 2018 at 08:09:26AM -0400, Pankaj Gupta wrote: >>> Will this raw file already have the "disk information header" (no idea >>> how that stuff is called) encoded? Are there any plans/possible ways to >>> >>> a) automatically create the head

[Qemu-devel] [RFC PATCH v2] spapr: Support ibm, dynamic-memory-v2 property

2018-04-08 Thread Bharata B Rao
The new property ibm,dynamic-memory-v2 allows memory to be represented in a more compact manner in device tree. Signed-off-by: Bharata B Rao --- v1: https://lists.nongnu.org/archive/html/qemu-devel/2018-03/msg01788.html Changes in v1: - Minor cleanups in the error paths - Rebased on top of ppc-fo

Re: [Qemu-devel] Loadable block drivers?

2018-04-08 Thread Stefan Hajnoczi
On Thu, Apr 05, 2018 at 11:40:31AM +1000, Lindsay Mathieson wrote: > Thanks Stefan, looking to develop a lizardfs block driver. A process that > only involved building a module rather than the entire qemu tree would mike > life easier, especially if I could test it on a live system (proxmox > clust

Re: [Qemu-devel] [PATCH for-2.12] gdbstub: fix off-by-one in gdb_handle_packet()

2018-04-08 Thread Stefan Hajnoczi
On Sun, Apr 08, 2018 at 11:59:33AM -0300, Philippe Mathieu-Daudé wrote: > memtohex() adds an extra trailing NUL character. > > Reported-by: AddressSanitizer > Signed-off-by: Philippe Mathieu-Daudé > --- > (gdb) dump binary memory /tmp/dram.bin 0x9400 0x9410 > Remote connection closed > >

Re: [Qemu-devel] [PATCH for-2.12] tap: set vhostfd passed from qemu cli to non-blocking

2018-04-08 Thread Michael S. Tsirkin
On Fri, Apr 06, 2018 at 07:03:56AM -0500, Brijesh Singh wrote: > A guest boot hangs while probing the network interface when > iommu_platform=on is used. > > The following qemu cli hangs without this patch: > > # $QEMU \ > -netdev tap,fd=3,id=hostnet0,vhost=on,vhostfd=4 3<>/dev/tap67 > 4<>/dev

[Qemu-devel] [PATCH v4 1/2] Implement .hex file loader

2018-04-08 Thread Su Hang
This patch adds Intel Hexadecimal Object File format support to the loader. The file format specification is available here: http://www.piclist.com/techref/fileext/hex/intel.htm The file format is mainly intended for embedded systems and microcontrollers, such as Arduino, ARM, STM32, etc. Sugges

[Qemu-devel] [PATCH v4 2/2] Add QTest testcase for the Intel Hexadecimal Object File Loader.

2018-04-08 Thread Su Hang
'test.hex' file is a bare metal ARM software stored in Hexadecimal Object Format. When it's loaded by QEMU, it will print "Hello world!\n" on console. `pre_store` array in 'hexloader-test.c' file, stores the binary format of 'test.hex' file, which is used to verify correctness. Signed-off-by: Su

[Qemu-devel] [PATCH v4 0/2] Implement Hex file loader and add test case

2018-04-08 Thread Su Hang
These series of patchs implement Intel Hexadecimal File loader and add QTest testcase to verify the correctness of Loader. v1: Basic version. v2: Replace `do{}while(cond);` block with `for(;;)` block. v3: Add two new files information in MAINTAINERS. v4: Correct the 'test.hex' path in hexloader-te

Re: [Qemu-devel] [RFC] qemu: Add virtio pmem device

2018-04-08 Thread Stefan Hajnoczi
On Thu, Apr 05, 2018 at 08:09:26AM -0400, Pankaj Gupta wrote: > > Will this raw file already have the "disk information header" (no idea > > how that stuff is called) encoded? Are there any plans/possible ways to > > > > a) automatically create the headers? (if that's even possible) > > Its raw.

Re: [Qemu-devel] [PATCH v5 0/9] i386: Enable TOPOEXT to support hyperthreading on AMD CPU

2018-04-08 Thread Moger, Babu
Ping... Checking to see if there are any further comments on these patch series. Thanks > -Original Message- > From: Moger, Babu > Sent: Tuesday, March 27, 2018 4:31 PM > To: m...@redhat.com; mar...@redhat.com; pbonz...@redhat.com; > r...@twiddle.net; ehabk...@redhat.com; mtosa...@redhat.c

Re: [Qemu-devel] [PATCH for-2.12 v2] qemu-iotests: update 185 output

2018-04-08 Thread QingFeng Hao
在 2018/4/4 23:01, Stefan Hajnoczi 写道: > Commit 4486e89c219c0d1b9bd8dfa0b1dd5b0d51ff2268 ("vl: introduce > vm_shutdown()") added a bdrv_drain_all() call. As a side-effect of the > drain operation the block job iterates one more time than before. The > 185 output no longer matches and the test is

Re: [Qemu-devel] [PATCH v2] scsi-disk: Don't enlarge min_io_size to max_io_size

2018-04-08 Thread David Gibson
On Thu, 5 Apr 2018 17:54:00 +0200 Paolo Bonzini wrote: > On 27/03/2018 18:41, Fam Zheng wrote: > > Some backends report big max_io_sectors. Making min_io_size the same > > value in this case will make it impossible for guest to align memory, > > therefore the disk may not be usable at all. > > >

Re: [Qemu-devel] [PATCH 0/5] Enable postcopy RDMA live migration

2018-04-08 Thread 858585 jemmy
ping. On Sat, Apr 7, 2018 at 4:26 PM, Lidong Chen wrote: > Current Qemu RDMA communication does not support send and receive > data at the same time, so when RDMA live migration with postcopy > enabled, the source qemu return path thread get qemu file error. > > Those patch add the postcopy suppo

Re: [Qemu-devel] [PATCH v8 10/23] RISC-V Linux User Emulation

2018-04-08 Thread Michael Clark
On Thu, Apr 5, 2018 at 12:44 AM, Laurent Vivier wrote: > Le 02/03/2018 à 14:51, Michael Clark a écrit : > > Implementation of linux user emulation for RISC-V. > > > > Reviewed-by: Richard Henderson > > Signed-off-by: Sagar Karandikar > > Signed-off-by: Michael Clark > > --- > > linux-user/elf

Re: [Qemu-devel] [NOTFORMERGE PATCH v2 2/4] memory: Fix access_with_adjusted_size() when size < access_size_min

2018-04-08 Thread Philippe Mathieu-Daudé
On 04/04/2018 10:22 PM, Philippe Mathieu-Daudé wrote: > ASan reported: > > shift exponent 4294967280 is too large for 64-bit type 'long unsigned int' > ... > runtime error: shift exponent -16 is negative > > This can occurs when MemoryRegionOps .valid.min_access_size < > .impl.min_ac

[Qemu-devel] [PATCH for-2.12] gdbstub: fix off-by-one in gdb_handle_packet()

2018-04-08 Thread Philippe Mathieu-Daudé
memtohex() adds an extra trailing NUL character. Reported-by: AddressSanitizer Signed-off-by: Philippe Mathieu-Daudé --- (gdb) dump binary memory /tmp/dram.bin 0x9400 0x9410 Remote connection closed = ==22732==ERROR: Address

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
** Description changed: QEMU master at 08e173f29461396575c85510eb41474b993cb1fb Ubuntu 17.10 host. QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ ./x86_64-softmmu/qemu-system-x86_64 \ - -M pc \ -append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
** Description changed: QEMU master at 08e173f29461396575c85510eb41474b993cb1fb Ubuntu 17.10 host. QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ - ./out/x86_64/buildroot/host/usr/bin/qemu-system-x86_64 \ + ./x86_64-softmmu/qemu-system-x86_64 \ -M pc \ -append 'root=/

[Qemu-devel] [Bug 1762179] Re: Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
** Description changed: - QEMU master at 08e173f29461396575c85510eb41474b993cb1fb + QEMU master at 08e173f29461396575c85510eb41474b993cb1fb Ubuntu 17.10 + host. QEMU commands: - ``` #!/usr/bin/env bash cmd="\ time \ ./out/x86_64/buildroot/host/usr/bin/qemu-system-x86_64 \ -M p

[Qemu-devel] [Bug 1762179] [NEW] Record and replay replay fails with: "ERROR:replay/replay-time.c:49:replay_read_clock: assertion failed"

2018-04-08 Thread Ciro Santilli 六四事件 法轮功
Public bug reported: QEMU master at 08e173f29461396575c85510eb41474b993cb1fb QEMU commands: ``` #!/usr/bin/env bash cmd="\ time \ ./out/x86_64/buildroot/host/usr/bin/qemu-system-x86_64 \ -M pc \ -append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"/rand_check.out;/sbin/ifup

Re: [Qemu-devel] [PATCH v2 for-2.12] roms/u-boot-sam460ex: Change to qemu git mirror and update

2018-04-08 Thread David Gibson
On Sun, Apr 08, 2018 at 12:31:24PM +0200, BALATON Zoltan wrote: > Now that we have a mirror of this repo on git.qemu.org change the > submodule to use that and update it to latest commit which fixes a > dangling symlink and removes two big binaries that are not needed. > > Signed-off-by: BALATON Z

Re: [Qemu-devel] [PATCH 0/5] sdl2 text console fixes and cleanups.

2018-04-08 Thread BALATON Zoltan
On Wed, 21 Mar 2018, Gerd Hoffmann wrote: Gerd Hoffmann (5): ui: add ctrl modifier support to kbd_put_qcode_console() sdl2: track kbd modifier state unconditionally sdl2: enable ctrl modifier keys for text consoles sdl2: drop QEMU_KEY_BACKSPACE special case sdl2: drop dead code include/ui/c

[Qemu-devel] [PATCH v2 for-2.12] roms/u-boot-sam460ex: Change to qemu git mirror and update

2018-04-08 Thread BALATON Zoltan
Now that we have a mirror of this repo on git.qemu.org change the submodule to use that and update it to latest commit which fixes a dangling symlink and removes two big binaries that are not needed. Signed-off-by: BALATON Zoltan --- David, you can drop previous version of this patch and replace

Re: [Qemu-devel] [Qemu-trivial] [PATCH RFC v3 for-2.12?] scripts/checkpatch.pl: Bug fix

2018-04-08 Thread Su Hang
Sorry for replying late, it's until today that I saw your mail. In order to find out why the former edition doesn't complain about `do{}while(cond);` pattern, I regress back to ed279a06c53784c8c6c9b41aa0388a4ce8a70410, one before the bug was introduced. Then I found in Line 2435 to Line 2443 did s

Re: [Qemu-devel] Loadable block drivers?

2018-04-08 Thread Fam Zheng
On Thu, 04/05 11:40, Lindsay Mathieson wrote: > On 4 April 2018 at 23:41, Stefan Hajnoczi wrote: > > > On Tue, Apr 03, 2018 at 11:30:33AM +0800, Fam Zheng wrote: > > > On Tue, 04/03 13:17, Lindsay Mathieson wrote: > > > > On 3 April 2018 at 13:11, Fam Zheng wrote: > > > > > > > > > On Tue, 04/03

Re: [Qemu-devel] [Qemu-block] [RFC PATCH 0/8] qemu-img convert with copy offloading

2018-04-08 Thread Fam Zheng
On Fri, 04/06 13:41, Paolo Bonzini wrote: > On 05/04/2018 14:55, Stefan Hajnoczi wrote: > > bdrv_copy_file_range() will invoke bdrv_co_copy_file_range_src() on > > src[qcow2]. The qcow2 block driver will invoke > > bdrv_co_copy_file_range_src() on src[file]. The file-posix driver will > > invoke

Re: [Qemu-devel] [PATCH v2] iotests: fix wait_until_completed()

2018-04-08 Thread Fam Zheng
On Sun, 04/08 11:05, Peter Xu wrote: > If there are more than one events, wait_until_completed() might return > the 2nd event even if the 1st event is JOB_COMPLETED, since the for loop > will continue to run even if completed is set to True. > > It never happened before, but it can be triggered wh

Re: [Qemu-devel] [PATCH v3 2/2] vhost-user: back SET/GET_CONFIG requests with a protocol feature

2018-04-08 Thread Liu, Changpeng
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, March 29, 2018 3:53 PM > To: m...@redhat.com; Liu, Changpeng ; > marcandre.lur...@redhat.com; qemu-devel@nongnu.org > Cc: Maxime Coquelin > Subject: [PATCH v3 2/2] vhost-user: back SET/GET_

Re: [Qemu-devel] [PATCH v3 1/2] vhost-user-blk: set config ops before vhost-user init

2018-04-08 Thread Liu, Changpeng
> -Original Message- > From: Maxime Coquelin [mailto:maxime.coque...@redhat.com] > Sent: Thursday, March 29, 2018 3:53 PM > To: m...@redhat.com; Liu, Changpeng ; > marcandre.lur...@redhat.com; qemu-devel@nongnu.org > Cc: Maxime Coquelin > Subject: [PATCH v3 1/2] vhost-user-blk: set confi

Re: [Qemu-devel] [PATCH v3 0/3] nvram: at24c: fix problems related to "rom-size"

2018-04-08 Thread Wolfram Sang
On Tue, Mar 20, 2018 at 05:18:47PM +0100, Wolfram Sang wrote: > I used this driver as a template for a custom one. While hacking on my own, I > noticed some problems in this driver, too. This series fixes the first set of > them, related to the "rom-size" parameter. It fixes a segfault. > > I thin