[Qemu-devel] [PATCH] qemu log: wrap long text

2016-07-03 Thread Mike Frysinger
The existing help output is a bit hard to read due to the ad-hoc wrapping. This makes it a bit more programmatic (at least, it wraps it once, but that should be good enough for now). Signed-off-by: Mike Frysinger --- util/log.c | 36 ++-- 1 file changed, 30 insert

Re: [Qemu-devel] [PATCH v2 0/2]vhost-user: Extend protocol to seek response for any command.

2016-07-03 Thread Marc-André Lureau
Hi On Fri, Jul 1, 2016 at 11:46 AM, Prerna Saxena wrote: > From: Prerna Saxena > > The current vhost-user protocol requires the client to send responses to only > a > few commands. For the remaining commands, it is impossible for QEMU to know > the > status of the requested operation -- ie, di

Re: [Qemu-devel] [PATCH] target-i386: Use struct X86XSaveArea in fpu_helper.c

2016-07-03 Thread Eduardo Habkost
On Sat, Jul 02, 2016 at 04:45:11PM -0700, Richard Henderson wrote: > On 07/02/2016 01:02 PM, Eduardo Habkost wrote: > > On Sat, Jul 02, 2016 at 09:44:31AM -0700, Richard Henderson wrote: > > [...] > > > @@ -1402,9 +1409,8 @@ void helper_xrstor(CPUX86State *env, target_ulong > > > ptr, uint64_t rfb

[Qemu-devel] [Bug 1598612] [NEW] Windows for Workgroups 3.11 installer crashes with a general protection fault

2016-07-03 Thread Julius Schwartzenberg
Public bug reported: I used only disk images from here: http://ia801606.us.archive.org/zipview.php?zip=/22/items/IBM_PC_Compatibles_TOSEC_2012_04_23/IBM_PC_Compatibles_TOSEC_2012_04_23.zip When I try to install Windows for Workgroups 3.11 on either PC DOS 2000 or MS-DOS 6.22, the installer crashe

[Qemu-devel] [Bug 1598612] Re: Windows for Workgroups 3.11 installer crashes with a general protection fault

2016-07-03 Thread Julius Schwartzenberg
Windows 3.1 has the same problem, but the errors are slightly different: Application Error WINSETUP caused a General Protection Fault in module 0C77:7011WINSETUP will close. Application Error WINSETUP caused a General Protection Fault in module KRNL386.EXE at 0001:9F03. -- You received this bu

[Qemu-devel] [PULL 1/6] slirp: Split get_dns_addr

2016-07-03 Thread Samuel Thibault
Separate get_dns_addr into get_dns_addr_cached and get_dns_addr_resolv_conf to make conversion to IPv6 easier. Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- slirp/slirp.c | 53 ++--- 1 file changed, 34 insertions(+), 19 deletions(-)

[Qemu-devel] [PULL 4/6] slirp: Add RDNSS advertisement

2016-07-03 Thread Samuel Thibault
This adds the RDNSS option to IPv6 router advertisements, so that the guest can autoconfigure the DNS server address. Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- Changes since last submission: - Disable on windows, until we have support for it --- slirp/ip6_icmp.c | 27

[Qemu-devel] [PULL 6/6] slirp: Add support for stateless DHCPv6

2016-07-03 Thread Samuel Thibault
From: Thomas Huth Provide basic support for stateless DHCPv6 (see RFC 3736) so that guests can also automatically boot via IPv6 with SLIRP (for IPv6 network booting, see RFC 5970 for details). Tested with: qemu-system-ppc64 -nographic -vga none -boot n -net nic \ -net user,ipv6=yes,

[Qemu-devel] [PULL 3/6] slirp: Support link-local DNS addresses

2016-07-03 Thread Samuel Thibault
They look like fe80::%eth0 Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- Changes since last submission: - fix windows build --- slirp/libslirp.h | 2 +- slirp/slirp.c| 32 +++- slirp/socket.c | 5 - 3 files changed, 32 insertions(+), 7 dele

[Qemu-devel] [PULL 0/6] slirp: ipv6 dns & dhcp support

2016-07-03 Thread Samuel Thibault
The following changes since commit 9a48e3670030148a8d00c8d4d4cd7f051c0d9f39: Added Bulgarian translation (2016-07-01 16:06:57 +0100) are available in the git repository at: http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault for you to fetch changes up to 7b143999f2fbbd576d60a

[Qemu-devel] [PULL 2/6] slirp: Add dns6 resolution

2016-07-03 Thread Samuel Thibault
This makes get_dns_addr address family-agnostic, thus allowing to add the IPv6 case. Signed-off-by: Samuel Thibault Reviewed-by: Thomas Huth --- slirp/ip6.h | 9 +++ slirp/libslirp.h | 1 + slirp/slirp.c| 79 slirp/socket.c

[Qemu-devel] [PULL 5/6] slirp: Remove superfluous memset() calls from the TFTP code

2016-07-03 Thread Samuel Thibault
From: Thomas Huth Commit fad7fb9ccd8013ea03 ("Add IPv6 support to the TFTP code") refactored some common code for preparing the mbuf into a new function called tftp_prep_mbuf_data(). One part of this common code is to do a "memset(m->m_data, 0, m->m_size);" for the related buffer first. However,

Re: [Qemu-devel] [PATCH v20 Resend 09/10] tests: add unit test case for replication

2016-07-03 Thread Changlong Xie
On 06/14/2016 03:53 PM, Changlong Xie wrote: Signed-off-by: Wen Congyang Signed-off-by: Changlong Xie --- tests/.gitignore | 1 + tests/Makefile | 4 + tests/test-replication.c | 555 +++ 3 files changed, 560 insertions(+)

Re: [Qemu-devel] [PATCH 1/3] Mediated device Core driver

2016-07-03 Thread Jike Song
On 06/21/2016 12:31 AM, Kirti Wankhede wrote: > +/* > + * mdev_register_device : Register a device > + * @dev: device structure representing parent device. > + * @ops: Parent device operation structure to be registered. > + * > + * Add device to list of registered parent devices. > + * Returns a ne

Re: [Qemu-devel] [PATCH] ppc: Fix xsrdpi, xvrdpi and xvrspi rounding

2016-07-03 Thread David Gibson
On Mon, Jul 04, 2016 at 09:20:12AM +1000, Anton Blanchard wrote: > From: Anton Blanchard > > xsrdpi, xvrdpi and xvrspi use the round ties away method, not round > nearest even. > > Signed-off-by: Anton Blanchard Applied to ppc-for-2.7. I take it float_round_ties_away is the same thing the arc

Re: [Qemu-devel] [PATCH v0] spapr: Ensure thread0 of CPU core is always realized first

2016-07-03 Thread David Gibson
On Fri, Jul 01, 2016 at 10:44:39AM +0530, Bharata B Rao wrote: > During CPU core realization, we create all the thread objects and parent > them to the core object in a loop. However, the realization of thread > objects is done separately by walking the threads of a core using > object_child_foreac

Re: [Qemu-devel] [RFC PATCH V2 1/3] filter-rewriter: introduce filter-rewriter initialization

2016-07-03 Thread Jason Wang
On 2016年07月02日 14:22, Zhang Chen wrote: Filter-rewriter is a part of COLO project. It will rewrite some of secondary packet to make secondary guest's connection established successfully. Probably need to be more verbose here. E.g we only care about tcp and only rewrite ack now. usage: c

Re: [Qemu-devel] [PATCH v2 0/2]vhost-user: Extend protocol to seek response for any command.

2016-07-03 Thread Prerna Saxena
Hi Marc-Andre, Thank you for taking a look. On 03/07/16 5:17 pm, "Marc-André Lureau" wrote: >Hi > >On Fri, Jul 1, 2016 at 11:46 AM, Prerna Saxena wrote: >> From: Prerna Saxena >> >> The current vhost-user protocol requires the client to send responses to >> only a >> few commands. For the

Re: [Qemu-devel] [RFC PATCH V2 2/3] filter-rewriter: track connection and parse packet

2016-07-03 Thread Jason Wang
On 2016年07月02日 14:22, Zhang Chen wrote: We use colo-base.h to track connection and parse packet Signed-off-by: Zhang Chen Signed-off-by: Li Zhijian Signed-off-by: Wen Congyang --- net/filter-rewriter.c | 52 +++ 1 file changed, 52 insertion

Re: [Qemu-devel] [RFC PATCH V2 3/3] filter-rewriter: rewrite tcp packet to keep secondary connection

2016-07-03 Thread Jason Wang
On 2016年07月02日 14:22, Zhang Chen wrote: We will rewrite tcp packet secondary received and sent. When colo guest is a tcp server. Firstly, client start a tcp handshake. the packet's seq=client_seq, ack=0,flag=SYN. COLO primary guest get this pkt and mirror(filter-mirror) to secondary guest, sec

[Qemu-devel] [PATCH qemu v19 4/5] vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)

2016-07-03 Thread Alexey Kardashevskiy
New VFIO_SPAPR_TCE_v2_IOMMU type supports dynamic DMA window management. This adds ability to VFIO common code to dynamically allocate/remove DMA windows in the host kernel when new VFIO container is added/removed. This adds a helper to vfio_listener_region_add which makes VFIO_IOMMU_SPAPR_TCE_CRE

[Qemu-devel] [PATCH qemu v19 1/5] spapr_iommu: Realloc guest visible TCE table when starting/stopping listening

2016-07-03 Thread Alexey Kardashevskiy
The sPAPR TCE tables manage 2 copies when VFIO is using an IOMMU - a guest view of the table and a hardware TCE table. If there is no VFIO presense in the address space, then just the guest view is used, if this is the case, it is allocated in the KVM. However since there is no support yet for VFIO

[Qemu-devel] [PATCH qemu v19 5/5] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2016-07-03 Thread Alexey Kardashevskiy
This adds support for Dynamic DMA Windows (DDW) option defined by the SPAPR specification which allows to have additional DMA window(s) The "ddw" property is enabled by default on a PHB but for compatibility the pseries-2.6 machine and older disable it. This also creates a single DMA window for th

[Qemu-devel] [PATCH qemu v19 3/5] vfio: Add host side DMA window capabilities

2016-07-03 Thread Alexey Kardashevskiy
There are going to be multiple IOMMUs per a container. This moves the single host IOMMU parameter set to a list of VFIOHostDMAWindow. This should cause no behavioral change and will be used later by the SPAPR TCE IOMMU v2 which will also add a vfio_host_win_del() helper. Signed-off-by: Alexey Kar

[Qemu-devel] [PATCH qemu v19 0/5] spapr_pci/spapr_pci_vfio: Support Dynamic DMA Windows (DDW)

2016-07-03 Thread Alexey Kardashevskiy
Each Partitionable Endpoint (IOMMU group) has an address range on a PCI bus where devices are allowed to do DMA. These ranges are called DMA windows. By default, there is a single DMA window, 1 or 2GB big, mapped at zero on a PCI bus. PAPR defines a DDW RTAS API which allows pseries guests queryin

[Qemu-devel] [PATCH qemu v19 2/5] vfio: spapr: Add DMA memory preregistering (SPAPR IOMMU v2)

2016-07-03 Thread Alexey Kardashevskiy
This makes use of the new "memory registering" feature. The idea is to provide the userspace ability to notify the host kernel about pages which are going to be used for DMA. Having this information, the host kernel can pin them all once per user process, do locked pages accounting (once) and not s

Re: [Qemu-devel] [PATCH v3 3/5] numa: reduce code duplication by adding helper numa_get_node_for_cpu()

2016-07-03 Thread David Gibson
On Fri, Jul 01, 2016 at 01:50:24PM +0200, Igor Mammedov wrote: > Replace repeated pattern > > for (i = 0; i < nb_numa_nodes; i++) { > if (test_bit(idx, numa_info[i].node_cpu)) { >... >break; > > with a helper function to lookup numa node index for cpu. > > Sug

Re: [Qemu-devel] [PATCH v2 4/7] ppc: open code cpu creation for machine types

2016-07-03 Thread David Gibson
On Sat, Jul 02, 2016 at 10:33:33AM +0200, Greg Kurz wrote: > On Sat, 2 Jul 2016 13:36:22 +0530 > Bharata B Rao wrote: > > > On Sat, Jul 02, 2016 at 12:41:48AM +0200, Greg Kurz wrote: > > > If we want to generate cpu_dt_id in the machine code, this must occur > > > before the cpu gets realized. We

Re: [Qemu-devel] [PATCH v2 2/7] ppc: simplify max_smt initialization in ppc_cpu_realizefn()

2016-07-03 Thread David Gibson
On Sat, Jul 02, 2016 at 12:41:32AM +0200, Greg Kurz wrote: > kvmppc_smt_threads() returns 1 if KVM is not enabled. > > Signed-off-by: Greg Kurz Applied to ppc-for-2.7 > --- > target-ppc/translate_init.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/target-ppc/tra

Re: [Qemu-devel] [V12 3/4] hw/i386: Introduce AMD IOMMU

2016-07-03 Thread David Kiarie
On Wed, Jun 22, 2016 at 11:24 PM, Jan Kiszka wrote: > On 2016-06-15 14:21, David Kiarie wrote: >> + >> +/* System Software might never read from some of this fields but anyways */ > > No read-modify-write accesses observed in the field? And fields like > AMDVI_MMIO_STATUS or AMDVI_MMIO_EXT_FEATURE

[Qemu-devel] [PATCH] ppc: Fix xsrdpi, xvrdpi and xvrspi rounding

2016-07-03 Thread Anton Blanchard
From: Anton Blanchard xsrdpi, xvrdpi and xvrspi use the round ties away method, not round nearest even. Signed-off-by: Anton Blanchard --- target-ppc/fpu_helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target-ppc/fpu_helper.c b/target-ppc/fpu_helper.c index 4

Re: [Qemu-devel] [PATCH 1/4] ppc: simplify ppc_hash64_hpte_page_shift_noslb()

2016-07-03 Thread David Gibson
On Mon, Jul 04, 2016 at 02:46:51PM +1000, David Gibson wrote: > On Fri, Jul 01, 2016 at 09:10:10AM +0200, Cédric Le Goater wrote: > > The segment page shift parameter is never used. Let's remove it. > > I think I did have a use case for this in mind when I made it, but I > can't remember what it w

Re: [Qemu-devel] [PATCH 1/4] ppc: simplify ppc_hash64_hpte_page_shift_noslb()

2016-07-03 Thread David Gibson
On Fri, Jul 01, 2016 at 09:10:10AM +0200, Cédric Le Goater wrote: > The segment page shift parameter is never used. Let's remove it. I think I did have a use case for this in mind when I made it, but I can't remember what it was now. Oh well, we can always add it back when I remember. I'll apply

Re: [Qemu-devel] [V12 3/4] hw/i386: Introduce AMD IOMMU

2016-07-03 Thread Jan Kiszka
On 2016-07-04 07:06, David Kiarie wrote: > On Wed, Jun 22, 2016 at 11:24 PM, Jan Kiszka wrote: >> On 2016-06-15 14:21, David Kiarie wrote: >>> +static uint64_t amdvi_mmio_read(void *opaque, hwaddr addr, unsigned size) >>> +{ >>> +AMDVIState *s = opaque; >>> + >>> +uint64_t val = -1; >>> +

Re: [Qemu-devel] [V12 3/4] hw/i386: Introduce AMD IOMMU

2016-07-03 Thread David Kiarie
On Mon, Jul 4, 2016 at 8:41 AM, Jan Kiszka wrote: > On 2016-07-04 07:06, David Kiarie wrote: >> On Wed, Jun 22, 2016 at 11:24 PM, Jan Kiszka wrote: >>> On 2016-06-15 14:21, David Kiarie wrote: +static uint64_t amdvi_mmio_read(void *opaque, hwaddr addr, unsigned size) +{ +AMDVIS

Re: [Qemu-devel] [V12 3/4] hw/i386: Introduce AMD IOMMU

2016-07-03 Thread Jan Kiszka
On 2016-07-04 07:49, David Kiarie wrote: > +/* FIXME: something might go wrong if System Software writes in chunks > + * of one byte but linux writes in chunks of 4 bytes so currently it > + * works correctly with linux but will definitely be busted if software > + * reads/writes 8

Re: [Qemu-devel] [PATCH 0/4] ppc: fixes for large page and VRMA support

2016-07-03 Thread Benjamin Herrenschmidt
On Fri, 2016-07-01 at 09:10 +0200, Cédric Le Goater wrote: > Here is a little serie with API cleanups and fixes for large page and > VRMA. Previous patches which added the support did not take into > account the segment page size attribute. I've done a slightly different patch that subsumes 1...3

Re: [Qemu-devel] [PATCH 1/6] oslib-posix: add helpers for stack alloc and free

2016-07-03 Thread Peter Lieven
Am 01.07.2016 um 22:12 schrieb Richard Henderson: On 06/30/2016 12:37 AM, Peter Lieven wrote: +void *qemu_alloc_stack(size_t sz) +{ +/* allocate sz bytes plus one extra page for a guard + * page at the bottom of the stack */ +void *ptr = mmap(NULL, sz + getpagesize(), PROT_NONE, +

Re: [Qemu-devel] [PATCH 1/6] oslib-posix: add helpers for stack alloc and free

2016-07-03 Thread Peter Lieven
Am 01.07.2016 um 22:49 schrieb Richard Henderson: On 07/01/2016 01:12 PM, Richard Henderson wrote: On 06/30/2016 12:37 AM, Peter Lieven wrote: +void *qemu_alloc_stack(size_t sz) +{ +/* allocate sz bytes plus one extra page for a guard + * page at the bottom of the stack */ +void *pt

Re: [Qemu-devel] [PATCH 6/6] coroutine: reduce stack size to 64kB

2016-07-03 Thread Peter Lieven
Am 01.07.2016 um 23:13 schrieb Richard Henderson: On 06/30/2016 12:37 AM, Peter Lieven wrote: evaluation with the recently introduced maximum stack usage monitoring revealed that the actual used stack size was never above 4kB so allocating 1MB stack for each coroutine is a lot of wasted memory.

Re: [Qemu-devel] [PATCH] virtio: revert host notifiers to old semantics

2016-07-03 Thread Peter Lieven
Am 30.06.2016 um 17:31 schrieb Cornelia Huck: The host notifier rework tried both to unify host notifiers across transports and plug a possible hole during host notifier re-assignment. Unfortunately, this meant a change in semantics that breaks vhost and iSCSI+dataplane. As the minimal fix, keep

Re: [Qemu-devel] [PATCH 0/4] ppc: fixes for large page and VRMA support

2016-07-03 Thread Cédric Le Goater
On 07/04/2016 08:11 AM, Benjamin Herrenschmidt wrote: > On Fri, 2016-07-01 at 09:10 +0200, Cédric Le Goater wrote: >> Here is a little serie with API cleanups and fixes for large page and >> VRMA. Previous patches which added the support did not take into >> account the segment page size attribute.

[Qemu-devel] [PULL 4/8] e1000e: add boot rom

2016-07-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/net/e1000e.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c index 692283f..4778744 100644 --- a/hw/net/e1000e.c +++ b/hw/net/e1000e.c @@ -693,6 +693,7 @@ static void e1000e_class_init(ObjectClass *class, void *data)

[Qemu-devel] [PULL 6/8] ipxe: update prebuilt binaries

2016-07-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- pc-bios/efi-e1000.rom| Bin 196608 -> 209408 bytes pc-bios/efi-e1000e.rom | Bin 0 -> 209408 bytes pc-bios/efi-eepro100.rom | Bin 197120 -> 209920 bytes pc-bios/efi-ne2k_pci.rom | Bin 195584 -> 208384 bytes pc-bios/efi-pcnet.rom| Bin 195584 -> 208384 b

[Qemu-devel] [PULL 5/8] vmxnet3: add boot rom

2016-07-03 Thread Gerd Hoffmann
Disable for old machine types as this is a guest visible change. Signed-off-by: Gerd Hoffmann --- hw/net/vmxnet3.c | 1 + include/hw/i386/pc.h | 4 2 files changed, 5 insertions(+) diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c index d978976..25cee9f 100644 --- a/hw/net/vmxnet3.c +++

Re: [Qemu-devel] [PATCH v2 4/7] ppc: open code cpu creation for machine types

2016-07-03 Thread Greg Kurz
On Mon, 4 Jul 2016 13:54:55 +1000 David Gibson wrote: > On Sat, Jul 02, 2016 at 10:33:33AM +0200, Greg Kurz wrote: > > On Sat, 2 Jul 2016 13:36:22 +0530 > > Bharata B Rao wrote: > > > > > On Sat, Jul 02, 2016 at 12:41:48AM +0200, Greg Kurz wrote: > > > > If we want to generate cpu_dt_id in

[Qemu-devel] [PULL 2/8] ipxe: add e1000e rom

2016-07-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- roms/Makefile | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roms/Makefile b/roms/Makefile index 7bd1252..e8133fe 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -1,11 +1,13 @@ vgabios_variants := stdvga cirrus vmware qxl isavga vir

[Qemu-devel] [PULL 3/8] ipxe: add vmxnet3 rom

2016-07-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- roms/Makefile | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roms/Makefile b/roms/Makefile index e8133fe..88b3709 100644 --- a/roms/Makefile +++ b/roms/Makefile @@ -1,8 +1,8 @@ vgabios_variants := stdvga cirrus vmware qxl isavga virti

[Qemu-devel] [PULL 0/8] ipxe: update submodule from 4e03af8ec to 041863191

2016-07-03 Thread Gerd Hoffmann
Hi, Here comes the ipxe update for 2.7, rebasing the ipxe module to latest master and also adding boot roms for e1000e and vmxnet3. v2: two incremental tweaks to make sure the two new roms are installed properly. please pull, Gerd The following changes since commit c7288767523f6510cf557707d

[Qemu-devel] [PULL 7/8] ipxe: add new roms to BLOBS

2016-07-03 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 7087fc2..5ea13bc 100644 --- a/Makefile +++ b/Makefile @@ -416,6 +416,7 @@ pxe-e1000.rom pxe-eepro100.rom pxe-ne2k_pci.rom \ pxe-pcnet.rom pxe-rtl8139.rom pxe-virtio.rom \ efi-

[Qemu-devel] [PULL 8/8] build: add pc-bios to config-host.mak deps

2016-07-03 Thread Gerd Hoffmann
... so configure re-runs on pc-bios updates such as new pxe roms. Needed because configure symlinks the prebuilt roms from src into build tree. Signed-off-by: Gerd Hoffmann --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ea13bc..c1ac21d

[Qemu-devel] [PULL 1/8] ipxe: update submodule from 4e03af8ec to 041863191

2016-07-03 Thread Gerd Hoffmann
shortlog Andrew Widdersheim (1): [netdevice] Add "ifname" setting Carl Henrik Lunde (1): [vmxnet3] Avoid completely filling the TX descriptor ring Christian Hesse (2): [golan] Fix build error on some versions of gcc [ath9k] Fix buffer overrun for ar9287 Christia