[Qemu-devel] [PATCH v5 05/23] block: Switch bdrv_make_zero() to byte-based

2017-10-03 Thread Eric Blake
We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Change the internal loop iteration of zeroing a device to track by bytes instead of sectors (although we are still guaranteed that we iterate by steps that are sector-aligned). Signed-off-b

[Qemu-devel] [PATCH v5 14/23] qemu-img: Speed up compare on pre-allocated larger file

2017-10-03 Thread Eric Blake
Compare the following images with all-zero contents: $ truncate --size 1M A $ qemu-img create -f qcow2 -o preallocation=off B 1G $ qemu-img create -f qcow2 -o preallocation=metadata C 1G On my machine, the difference is noticeable for pre-patch speeds, with more than an order of magnitude in diffe

[Qemu-devel] [PATCH v5 22/23] block: Relax bdrv_aligned_preadv() assertion

2017-10-03 Thread Eric Blake
Now that bdrv_is_allocated accepts non-aligned inputs, we can remove the TODO added in commit d6a644bb. Signed-off-by: Eric Blake Reviewed-by: John Snow --- v4-v5: no change v3: new patch [Kevin] --- block/io.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/block/i

[Qemu-devel] [PATCH v5 09/23] block: Switch BdrvCoGetBlockStatusData to byte-based

2017-10-03 Thread Eric Blake
We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal type (no semantic change), and rename it to match the corresponding public function rename. Signed-off-by: Eric Blake Reviewed-by: Fam Zheng Reviewed-by: John Sno

[Qemu-devel] [PATCH v5 19/23] qemu-img: Change img_rebase() to be byte-based

2017-10-03 Thread Eric Blake
In the continuing quest to make more things byte-based, change the internal iteration of img_rebase(). We can finally drop the TODO assertion added earlier, now that the entire algorithm is byte-based and no longer has to shift from bytes to sectors. Most of the change is mechanical ('num_sectors

[Qemu-devel] [PATCH v5 16/23] qemu-img: Drop redundant error message in compare

2017-10-03 Thread Eric Blake
If a read error is encountered during 'qemu-img compare', we were printing the "Error while reading offset ..." message twice; this was because our helper function was awkward, printing output on some but not all paths. Fix it to consistently report errors on all paths, so that the callers do not

[Qemu-devel] [PATCH v5 10/23] block: Switch bdrv_common_block_status_above() to byte-based

2017-10-03 Thread Eric Blake
We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal function (no semantic change). Signed-off-by: Eric Blake Reviewed-by: Fam Zheng Reviewed-by: John Snow --- v4-v5: no change v3: rebase to allocation/mapping sen

[Qemu-devel] [PATCH v5 18/23] qemu-img: Change compare_sectors() to be byte-based

2017-10-03 Thread Eric Blake
In the continuing quest to make more things byte-based, change compare_sectors(), renaming it to compare_buffers() in the process. Note that one caller (qemu-img compare) only cares about the first difference, while the other (qemu-img rebase) cares about how many consecutive sectors have the same

[Qemu-devel] [PATCH v5 11/23] block: Switch bdrv_co_get_block_status_above() to byte-based

2017-10-03 Thread Eric Blake
We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Convert another internal type (no semantic change), and rename it to match the corresponding public function rename. Signed-off-by: Eric Blake Reviewed-by: Fam Zheng Reviewed-by: John Sno

[Qemu-devel] [PATCH v5 15/23] qemu-img: Add find_nonzero()

2017-10-03 Thread Eric Blake
During 'qemu-img compare', when we are checking that an allocated portion of one file is all zeros, we don't need to waste time computing how many additional sectors after the first non-zero byte are also non-zero. Create a new helper find_nonzero() to do the check for a first non-zero sector, and

[Qemu-devel] [PATCH v5 20/23] qemu-img: Change img_compare() to be byte-based

2017-10-03 Thread Eric Blake
In the continuing quest to make more things byte-based, change the internal iteration of img_compare(). We can finally drop the TODO assertions added earlier, now that the entire algorithm is byte-based and no longer has to shift from bytes to sectors. Most of the change is mechanical ('total_sec

[Qemu-devel] [PATCH v5 23/23] qemu-io: Relax 'alloc' now that block-status doesn't assert

2017-10-03 Thread Eric Blake
Previously, the alloc command required that input parameters be sector-aligned and clamped to 32 bits, because the underlying bdrv_is_allocated used a 32-bit parameter and asserted aligned inputs. But now that we have fixed block status to report a 64-bit bytes value, and to properly round request

[Qemu-devel] [PATCH v5 21/23] block: Align block status requests

2017-10-03 Thread Eric Blake
Any device that has request_alignment greater than 512 should be unable to report status at a finer granularity; it may also be simpler for such devices to be guaranteed that the block layer has rounded things out to the granularity boundary (the way the block layer already rounds all other I/O out

Re: [Qemu-devel] [PATCH v2 0/5] block: Avoid copy-on-read assertions

2017-10-03 Thread Eric Blake
On 10/03/2017 09:16 PM, no-re...@patchew.org wrote: > Hi, > > This series failed automatic build test. Please find the testing commands and > their output below. If you have docker installed, you can probably reproduce > it > locally. > > 195 [not run] not suitable for this image format

[Qemu-devel] [PATCH v4 0/2] vl: Deprecate auto-loading of qemu.conf

2017-10-03 Thread Eduardo Habkost
This missed v2.9 and v2.10. Let's try again: we can include this on v2.11, and remove the default config file in QEMU 2.13 or 2.14. Changes v3 -> v4: * Use warn_report() instead of error_report("warning: ...") (Eric Blake) * Document as a deprecated feature in qemu-doc.texi * Updated Subject li

[Qemu-devel] [PATCH v4 1/2] config: qemu_config_parse() return number of config groups

2017-10-03 Thread Eduardo Habkost
Change qemu_config_parse() to return the number of config groups in success and -EINVAL on error. This will allow callers of qemu_config_parse() to check if something was really loaded from the config file. All existing callers of qemu_config_parse() and qemu_read_config_file() only check if the r

[Qemu-devel] [PATCH v4 2/2] vl: Deprecate auto-loading of qemu.conf

2017-10-03 Thread Eduardo Habkost
In case there were options set in the default config file, print a warning so users can update their scripts. If somebody wants to keep the config file as-is, avoid the warning and use a command-line that will work in future QEMU versions, they can use: $QEMU -no-user-config -readconfig /etc/qem

[Qemu-devel] [PATCH v3 2/2] qemu-options: Deprecate -nodefconfig

2017-10-03 Thread Eduardo Habkost
Since 2012 (commit ba6212d8 "Eliminate cpus-x86_64.conf file") we have no default config files that would be disabled using -nodefconfig. Update documentation and document -nodefconfig as deprecated. Cc: Markus Armbruster Acked-by: Alistair Francis Signed-off-by: Eduardo Habkost --- Changes v2

[Qemu-devel] [PATCH v3 0/2] Deprecate -nodefconfig

2017-10-03 Thread Eduardo Habkost
Changes v2 -> v3: * Move documentation to the right section of qemu-doc.texi Changes v1 -> v2: * Document at "Deprecated features" section in qemu-doc.texi (Daniel) * Remove documentation for the option from qemu-options.hx (Markus) Since 2012 (commit ba6212d8 "Eliminate cpus-x86_64.conf file

[Qemu-devel] [PATCH v3 1/2] vl: Eliminate defconfig variable

2017-10-03 Thread Eduardo Habkost
Both -nodefconfig and -no-user-config options do the same thing today, we only need one variable to keep track of them. Suggested-by: Markus Armbruster Acked-by: Alistair Francis Reviewed-by: Markus Armbruster Signed-off-by: Eduardo Habkost --- vl.c | 5 + 1 file changed, 1 insertion(+),

Re: [Qemu-devel] [Qemu-ppc] [PATCH v5 1/6] ppc: spapr: Register and handle HCALL to receive updated RTAS region

2017-10-03 Thread Alexey Kardashevskiy
On 03/10/17 20:12, Alexey Kardashevskiy wrote: > On 03/10/17 17:07, David Gibson wrote: >> On Mon, Oct 02, 2017 at 02:02:19PM +1100, Alexey Kardashevskiy wrote: >>> On 29/09/17 21:52, Nikunj A Dadhania wrote: David Gibson writes: > On Thu, Sep 28, 2017 at 04:07:38PM +0530, Aravinda P

Re: [Qemu-devel] [PATCH v1 3/5] xlnx-zcu102: Specify the valid CPUs

2017-10-03 Thread Eduardo Habkost
On Tue, Oct 03, 2017 at 02:41:17PM -0700, Alistair Francis wrote: > On Tue, Oct 3, 2017 at 1:36 PM, Eduardo Habkost wrote: > > On Tue, Oct 03, 2017 at 01:05:13PM -0700, Alistair Francis wrote: > >> List all possible valid CPU options. > >> > >> Signed-off-by: Alistair Francis > >> --- > >> > >>

Re: [Qemu-devel] [PATCH v1 5/5] raspi: : Specify the valid CPUs

2017-10-03 Thread Eduardo Habkost
On Tue, Oct 03, 2017 at 07:18:44PM -0300, Philippe Mathieu-Daudé wrote: > On 10/03/2017 06:36 PM, Alistair Francis wrote: > > On Tue, Oct 3, 2017 at 1:39 PM, Eduardo Habkost wrote: > >> On Tue, Oct 03, 2017 at 01:05:18PM -0700, Alistair Francis wrote: > >>> List all possible valid CPU options. > >

[Qemu-devel] [Bug 1352179] Re: could not open disk image

2017-10-03 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1352179 Title: could not o

Re: [Qemu-devel] [PATCHv2] dma/i82374: avoid double creation of i82374 device

2017-10-03 Thread Markus Armbruster
Eduardo Habkost writes: > On Mon, Oct 02, 2017 at 02:50:07PM +0200, Paolo Bonzini wrote: >> On 29/09/2017 21:31, Eduardo Habkost wrote: >> >> -void DMA_init(ISABus *bus, int high_page_enable) >> >> +void DMA_init(ISABus *bus, int high_page_enable, Error **errp) >> > >> > If you make the function

Re: [Qemu-devel] [PATCH v2 0/5] block: Avoid copy-on-read assertions

2017-10-03 Thread Fam Zheng
On Tue, 10/03 21:22, Eric Blake wrote: > On 10/03/2017 09:16 PM, no-re...@patchew.org wrote: > > Hi, > > > > This series failed automatic build test. Please find the testing commands > > and > > their output below. If you have docker installed, you can probably > > reproduce it > > locally. > >

Re: [Qemu-devel] [PATCH RFC 0/6] xen: xen-domid-restrict improvements

2017-10-03 Thread Fam Zheng
On Tue, 10/03 18:24, Ian Jackson wrote: > no-re...@patchew.org writes ("Re: [Qemu-devel] [PATCH RFC 0/6] xen: > xen-domid-restrict improvements"): > > This series seems to have some coding style problems. See output below for > > more information: > > Thanks for this automatic mail. I have sorte

Re: [Qemu-devel] [PATCH v4 2/2] vl: Deprecate auto-loading of qemu.conf

2017-10-03 Thread Markus Armbruster
Eduardo Habkost writes: > In case there were options set in the default config file, print > a warning so users can update their scripts. > > If somebody wants to keep the config file as-is, avoid the > warning and use a command-line that will work in future QEMU > versions, they can use: > > $Q

Re: [Qemu-devel] [PATCH v3 2/2] qemu-options: Deprecate -nodefconfig

2017-10-03 Thread Markus Armbruster
Eduardo Habkost writes: > Since 2012 (commit ba6212d8 "Eliminate cpus-x86_64.conf file") we > have no default config files that would be disabled using > -nodefconfig. Update documentation and document -nodefconfig as > deprecated. > > Cc: Markus Armbruster > Acked-by: Alistair Francis > Signe

Re: [Qemu-devel] [PATCH v8 0/6] Initial support for keycodemapdb GIT submodule

2017-10-03 Thread Fam Zheng
On Mon, 10/02 11:52, Programmingkid wrote: > > > On Oct 2, 2017, at 6:11 AM, qemu-devel-requ...@gnu.org wrote: > > > > Message: 21 > > Date: Mon, 2 Oct 2017 10:56:27 +0100 > > From: "Daniel P. Berrange" > > To: qemu-devel@nongnu.org > > Cc: Fam Zheng , Gerd Hoffmann , > > Peter Maydell ,

Re: [Qemu-devel] [Qemu-ppc] [PATCH v5 1/6] ppc: spapr: Register and handle HCALL to receive updated RTAS region

2017-10-03 Thread David Gibson
On Wed, Oct 04, 2017 at 02:32:11PM +1100, Alexey Kardashevskiy wrote: > On 03/10/17 20:12, Alexey Kardashevskiy wrote: > > On 03/10/17 17:07, David Gibson wrote: > >> On Mon, Oct 02, 2017 at 02:02:19PM +1100, Alexey Kardashevskiy wrote: > >>> On 29/09/17 21:52, Nikunj A Dadhania wrote: > David

Re: [Qemu-devel] [PATCH for-2.10 0/3] qdev/vfio: defer DEVICE_DEL to avoid races with libvirt

2017-10-03 Thread David Gibson
On Tue, Oct 03, 2017 at 05:21:57PM -0500, Michael Roth wrote: > Quoting Michael Roth (2017-07-26 20:30:52) > > This series was motivated by the discussion in this thread: > > > > https://www.redhat.com/archives/libvir-list/2017-June/msg01370.html > > > > The issue this series addresses is that

Re: [Qemu-devel] [PATCH v2 32/47] hw/ppc: Replace fprintf(stderr, "*\n" with error_report()

2017-10-03 Thread David Gibson
On Fri, Sep 29, 2017 at 05:16:36PM -0700, Alistair Francis wrote: > Replace a large number of the fprintf(stderr, "*\n" calls with > error_report(). The functions were renamed with these commands and then > compiler issues where manually fixed. > > find ./* -type f -exec sed -i \ > 'N;N;N;N;N;

Re: [Qemu-devel] [RFC 4/5] pci: Simplify pci_bus_is_root()

2017-10-03 Thread David Gibson
On Tue, Oct 03, 2017 at 11:42:59AM -0300, Eduardo Habkost wrote: > On Tue, Oct 03, 2017 at 08:14:22PM +1100, David Gibson wrote: > > pci_bus_is_root() currently relies on a method in the PCIBusClass. > > But it's always known if a PCI bus is a root bus when we create it, so > > using a dynamic meth

[Qemu-devel] [Bug 1721187] [NEW] install Centos7 or fedora27 on qemu on windows8.1

2017-10-03 Thread laurent
Public bug reported: Hello, I have tried to install CentOs or Fedora27 on my Windows8 using QEMU. I work on notepad with 4GB. Unfortunatly, my touchpad nor my usb-mouse are not recognise on the graphical installation of CentOs and Fedora installation. So, I cannot install them. Here are the comm

Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH qemu v2] ppc/spapr: Receive and store device tree blob from SLOF

2017-10-03 Thread Greg Kurz
On Tue, 3 Oct 2017 16:17:01 +1100 Alexey Kardashevskiy wrote: > SLOF receives a device tree and updates it with various properties > before switching to the guest kernel and QEMU is not aware of any changes > made by SLOF. Since there is no real RTAS and QEMU implements it, > it makes sense to p

Re: [Qemu-devel] [Qemu-block] blockdev-commit design

2017-10-03 Thread Kashyap Chamarthy
On Mon, Oct 02, 2017 at 05:32:52PM +0200, Kevin Wolf wrote: > Am 02.10.2017 um 17:01 hat Kashyap Chamarthy geschrieben: > > On Tue, Sep 26, 2017 at 07:59:42PM +0200, Kevin Wolf wrote: [...] > > { > > "execute": "block-commit", > > "arguments": { > >

Re: [Qemu-devel] [PATCH 0/4] Small vhost-user fixes and tweaks

2017-10-03 Thread Maxime Coquelin
Hi David, On 10/02/2017 09:15 PM, Dr. David Alan Gilbert (git) wrote: From: "Dr. David Alan Gilbert" Hi, This set has a small set of fixes for vhost-user and also enables the SET_SLAVE_REQ_FD feature in libvhost-user. (Where it just stashes the fd). Dave Dr. David Alan Gilbert (4):

[Qemu-devel] [Bug 1720969] [NEW] qemu/memory.c:206: pointless copies of large structs ?

2017-10-03 Thread dcb
Public bug reported: [qemu/memory.c:206]: (performance) Function parameter 'a' should be passed by reference. [qemu/memory.c:207]: (performance) Function parameter 'b' should be passed by reference. Source code is static bool memory_region_ioeventfd_equal(MemoryRegionIoeventfd a,

[Qemu-devel] [Bug 1720971] [NEW] qemu/hw/block/onenand.c:522: strange if statement ?

2017-10-03 Thread dcb
Public bug reported: [qemu/hw/block/onenand.c:523]: (warning) Opposite inner 'if' condition leads to a dead code block. Source code is for (b = 0; b < s->blocks; b ++) { if (b >= s->blocks) { s->status |= ONEN_ERR_CMD; break; } Inne

Re: [Qemu-devel] [RFC PATCH qemu v2] ppc/spapr: Receive and store device tree blob from SLOF

2017-10-03 Thread Alexey Kardashevskiy
On 03/10/17 17:40, David Gibson wrote: > On Tue, Oct 03, 2017 at 04:17:01PM +1100, Alexey Kardashevskiy wrote: >> SLOF receives a device tree and updates it with various properties >> before switching to the guest kernel and QEMU is not aware of any changes >> made by SLOF. Since there is no real R

[Qemu-devel] [Bug 1720971] Re: qemu/hw/block/onenand.c:522: strange if statement ?

2017-10-03 Thread Thomas Huth
*** This bug is a duplicate of bug 1715007 *** https://bugs.launchpad.net/bugs/1715007 ** This bug has been marked a duplicate of bug 1715007 hw/block/onenand.c:520: dead code ? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [Qemu-ppc] [PATCH v5 1/6] ppc: spapr: Register and handle HCALL to receive updated RTAS region

2017-10-03 Thread Alexey Kardashevskiy
On 03/10/17 17:07, David Gibson wrote: > On Mon, Oct 02, 2017 at 02:02:19PM +1100, Alexey Kardashevskiy wrote: >> On 29/09/17 21:52, Nikunj A Dadhania wrote: >>> David Gibson writes: >>> On Thu, Sep 28, 2017 at 04:07:38PM +0530, Aravinda Prasad wrote: > Receive updates from SLOF about the

[Qemu-devel] [RFC 0/5] Assorted PCI/PCIe cleanups cleanups

2017-10-03 Thread David Gibson
I've been reworking my patches to consolidate the handling of PCI/PCIe "hybrid" devices based on feedback from my earlier series. I'm still wrestling with some problems here, but along the way I've made some cleanups which I think stand on their own. So, here they are. I built these on top of Ed

[Qemu-devel] [RFC 5/5] pcie: Don't allow extended config space access via conventional PCI bridges

2017-10-03 Thread David Gibson
In hardware it's possible, if odd, to have a configuration like: PCIe host bridge \- PCIe to PCI bridge \- PCI to PCIe bridge \- PCIe device The PCIe extended configuration space on the device won't be accessible to the host, because the cycles can't traverse the conventional PCI bus on

[Qemu-devel] [RFC 2/5] pci: Move bridge data structures from pci_bus.h to pci_bridge.h

2017-10-03 Thread David Gibson
include/hw/pci/pci_bus.h contains several data structures related to PCI bridges that aren't needed by most users of pci_bus.h. We already have a pci_bridge.h, so move them there. Signed-off-by: David Gibson --- include/hw/pci-host/xilinx-pcie.h | 2 +- include/hw/pci/pci_bridge.h | 48 +

<    1   2   3