[Qemu-devel] [PATCH] gtk: Remove unused include statements which are not portable

2013-08-18 Thread Stefan Weil
These include files don't exist for MinGW and are not needed for Linux (and hopefully for other hosts as well), so remove them. Signed-off-by: Stefan Weil s...@weilnetz.de --- ui/gtk.c |4 1 file changed, 4 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index c38146f..b5f4f0b 100644 ---

[Qemu-devel] How to write a backend receiving routine

2013-08-18 Thread Yang Jin
Hi, all I'm a beginner with QEMU. I'm trying to write a CAN device and also a backend. However while I try to write a backend receiving routine, some thing confuse me. I hope I can get some help here. Actually, I try to figure out how backend udp works at first, also a serial pci acts as a

Re: [Qemu-devel] [PATCH v3 0/2] future proof rom loading for cross versiom migration

2013-08-18 Thread Michael S. Tsirkin
On Tue, Aug 13, 2013 at 01:43:29AM +0300, Michael S. Tsirkin wrote: Changes from v2: address comments on v2 by Peter Maydell - switch from global constant to function - use memory_region_init_ram instead of _ram_ptr - disable for 1.6 Changes from v1: address comments by Peter

[Qemu-devel] [PATCH] pc: cleanup 1.4 compat support

2013-08-18 Thread Michael S. Tsirkin
Make 1.4 compat code call the 1.6 one, reducing code duplication. Add comment explaining why we can't make 1.4 call 1.5 as usual. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/i386/pc_piix.c | 4 ++-- hw/i386/pc_q35.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff

Re: [Qemu-devel] minimal linux distribution for qemu

2013-08-18 Thread Herbei Dacian
good to know. I was working back in 2005-2006 with a company that had a 4MB kernel. At that time I was too inexperienced to work at that level but I thought now I could reproduce their work with some help. Anyhow for the moment I'll go for 256 MB of ram board just so that I don't worry too much

Re: [Qemu-devel] [PATCH] pc: cleanup 1.4 compat support

2013-08-18 Thread Andreas Färber
Am 18.08.2013 15:50, schrieb Michael S. Tsirkin: Make 1.4 compat code call the 1.6 one, reducing code duplication. Add comment explaining why we can't make 1.4 call 1.5 as usual. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- hw/i386/pc_piix.c | 4 ++-- hw/i386/pc_q35.c | 4 ++--

Re: [Qemu-devel] [PATCH 0/7] introduce BSD-licensed block driver for raw

2013-08-18 Thread Paolo Bonzini
Il 16/08/2013 16:59, Anthony Liguori ha scritto: Laszlo Ersek ler...@redhat.com writes: Paolo asked me to write such a driver based on his textual specification alone. The first patch captures his email in full, the rest re-quotes parts that are being implemented. The tree compiles at each

Re: [Qemu-devel] [PATCH 7/7] switch raw block driver from raw.o to raw_bsd.o

2013-08-18 Thread Paolo Bonzini
Il 16/08/2013 16:15, Laszlo Ersek ha scritto: +static int raw_reopen_prepare(BDRVReopenState *reopen_state, + BlockReopenQueue *queue, Error **errp) { -return bdrv_reopen_prepare(bs-file); +BDRVReopenState tmp = *reopen_state; + +tmp.bs =

Re: [Qemu-devel] [PATCH 1/1] mc146818rtc: correct UIP hold length

2013-08-18 Thread Paolo Bonzini
Il 14/08/2013 16:10, James Hogan ha scritto: The UIP (update in progress) hold time was set to 8 32.768KHz clock cycles (around 244uS). However the timing diagram in the datasheet (Figure 16) shows that the UIP bit is held for both the update cycle time (either 248uS or 1984uS depending on the

Re: [Qemu-devel] [PATCH for-1.6] pc: fix up pc initialization

2013-08-18 Thread Paolo Bonzini
Il 13/08/2013 17:57, Andreas Färber ha scritto: Am 13.08.2013 17:27, schrieb Paolo Bonzini: All that should happen is that after migration you will not get panic notifications on the destination. Well, how does the Linux driver cope with pvpanic device present on boot but not present on

Re: [Qemu-devel] [PATCH v2 4/4] timer: make qemu_clock_enable sync between disable and timer's cb

2013-08-18 Thread Paolo Bonzini
Il 14/08/2013 02:34, liu ping fan ha scritto: On Tue, Aug 13, 2013 at 10:53 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 13/08/2013 07:43, Liu Ping Fan ha scritto: After disabling the QemuClock, we should make sure that no QemuTimers are still in flight. To implement that with light

Re: [Qemu-devel] [PATCH v2 1/4] vmdk: fix L1 and L2 table size in vmdk3 open

2013-08-18 Thread Paolo Bonzini
Il 13/08/2013 03:21, Fam Zheng ha scritto: VMDK3 header has the field l1dir_size, but vmdk_open_vmdk3 hardcoded the value. This patch honors the header field. And the L2 table size is 4096 according to VMDK spec[1], instead of 1 9 (512). I'm not sure from the VMDK spec that _only_ 4096 is

Re: [Qemu-devel] [PATCH] powerpc iommu: enable multiple TCE requests

2013-08-18 Thread Paolo Bonzini
Il 16/08/2013 11:49, Alexey Kardashevskiy ha scritto: With KVM, we could fall back to the qemu implementation + * when KVM doesn't support them, but that would be much slower + * than just using the KVM implementations of the single TCE + * hypercalls. */ +if

[Qemu-devel] [PATCH] misc: Fix some typos in names and comments

2013-08-18 Thread Stefan Weil
Most typos were found using a modified version of codespell: accross - across issueing - issuing TICNT_THRESHHOLD - TICNT_THRESHOLD bandwith - bandwidth VCARD_7816_PROPIETARY - VCARD_7816_PROPRIETARY occured - occurred gaurantee - guarantee sofware - software Signed-off-by: Stefan Weil

[Qemu-devel] (no subject)

2013-08-18 Thread Liu, Jinsong
From 1273f8b2e5464ec987facf9942fd3ccc0b69087e Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Mon, 19 Aug 2013 09:33:30 +0800 Subject: [PATCH] qemu-kvm bugfix for IA32_FEATURE_CONTROL This patch is to fix the bug https://bugs.launchpad.net/qemu-kvm/+bug/1207623

[Qemu-devel] [PATCH] qemu-kvm bugfix for IA32_FEATURE_CONTROL

2013-08-18 Thread Liu, Jinsong
From 1273f8b2e5464ec987facf9942fd3ccc0b69087e Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Mon, 19 Aug 2013 09:33:30 +0800 Subject: [PATCH] qemu-kvm bugfix for IA32_FEATURE_CONTROL This patch is to fix the bug https://bugs.launchpad.net/qemu-kvm/+bug/1207623

Re: [Qemu-devel] [PATCH] qemu-kvm bugfix for IA32_FEATURE_CONTROL

2013-08-18 Thread Stefan Weil
Am 18.08.2013 20:23, schrieb Liu, Jinsong: From 1273f8b2e5464ec987facf9942fd3ccc0b69087e Mon Sep 17 00:00:00 2001 From: Liu Jinsong jinsong@intel.com Date: Mon, 19 Aug 2013 09:33:30 +0800 Subject: [PATCH] qemu-kvm bugfix for IA32_FEATURE_CONTROL This patch is to fix the bug

Re: [Qemu-devel] [PATCH for-1.6] isa: fix documentation of isa_register_portio_list

2013-08-18 Thread Hervé Poussineau
Ping. Hervé Poussineau a écrit : Signed-off-by: Hervé Poussineau hpous...@reactos.org --- include/hw/isa/isa.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/isa/isa.h b/include/hw/isa/isa.h index 495bcf3..fa45a5b 100644 --- a/include/hw/isa/isa.h +++

Re: [Qemu-devel] [PATCH for-1.6] adlib: sort offsets in portio registration

2013-08-18 Thread Hervé Poussineau
Ping. CCing stable too. Hervé Hervé Poussineau a écrit : This fixes the following assert when -device adlib is used: ioport.c:240: portio_list_add: Assertion `pio-offset = off_last' failed. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/audio/adlib.c |2 +- 1 file changed,

[Qemu-devel] [Bug 688085] Re: Guest kernel hang during boot when KVM is active on i386 host

2013-08-18 Thread Julian Wiedmann
This release has reached end-of-life [0]. [0] https://wiki.ubuntu.com/Releases ** Changed in: linux (Ubuntu Maverick) Status: New = Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Qemu-devel] [PATCH] kvm: shoten the parameter list for get_real_device()

2013-08-18 Thread Wei Yang
get_real_device() has 5 parameters with the last 4 is contained in the first structure. This patch removes the last 4 parameters and directly use them from the first parameter. Signed-off-by: Wei Yang weiy...@linux.vnet.ibm.com --- hw/i386/kvm/pci-assign.c |9 - 1 files changed, 4

Re: [Qemu-devel] [PATCH v2 1/4] vmdk: fix L1 and L2 table size in vmdk3 open

2013-08-18 Thread Fam Zheng
On Sun, 08/18 17:19, Paolo Bonzini wrote: Il 13/08/2013 03:21, Fam Zheng ha scritto: VMDK3 header has the field l1dir_size, but vmdk_open_vmdk3 hardcoded the value. This patch honors the header field. And the L2 table size is 4096 according to VMDK spec[1], instead of 1 9 (512).

[Qemu-devel] [Bug 1180777] Re: Windows 7 VM freeze on Ubuntu 12.04 KVM

2013-08-18 Thread Hector Perez
Hi, I reported the #1212051 (https://bugs.launchpad.net/ubuntu/+source/qemu- kvm/+bug/1212051) bug with Windows XP, but reading this case i think it could be the same issue. I connect via RDP to my windows XP VM and after a while it seems to freeze, then, I connect via VNC an without doing

[Qemu-devel] [PATCH v3] spapr-pci: fix config space access to support bridges

2013-08-18 Thread Alexey Kardashevskiy
spapr-pci config space accessors use find_dev() to find a PCI device. However find_dev() only searched on a primary bus and did not do recursive search through secondary buses so config space access was not possible for devices other that on a primary bus. This fixed find_dev() by using the PCI

[Qemu-devel] [RFC PATCH v4] powerpc: add PVR mask support

2013-08-18 Thread Alexey Kardashevskiy
IBM POWERPC processors encode PVR as a CPU family in higher 16 bits and a CPU version in lower 16 bits. Since there is no significant change in behavior between versions, there is no point to add every single CPU version in QEMU's CPU list. Also, new CPU versions of already supported CPU won't

Re: [Qemu-devel] [PATCH 0/2 v4] kvm irqfd: support msimessage to irq translation in PHB

2013-08-18 Thread Alexey Kardashevskiy
On 08/07/2013 06:51 PM, Alexey Kardashevskiy wrote: Yet another try to push IRQFD support for sPAPR. This includes rework for QEMU and enablement for sPAPR PCI. Ping, anyone, please? Alexey Kardashevskiy (2): kvm irqfd: support msimessage to irq translation in PHB pseries: enable

[Qemu-devel] [PATCH v3 0/8] xics: reworks and in-kernel support

2013-08-18 Thread Alexey Kardashevskiy
Yet another try with XICS-KVM. v2-v3: Addressed multiple comments from Andreas; Added 2 patches for XICS from Ben - I included them into the series as they are about XICS and they won't rebase automatically if moved before XICS rework so it seemed to me that it would be better to carry them

[Qemu-devel] [PATCH v3 1/8] target-ppc: Add helper for KVM_PPC_RTAS_DEFINE_TOKEN

2013-08-18 Thread Alexey Kardashevskiy
From: David Gibson da...@gibson.dropbear.id.au Recent PowerKVM allows the kernel to intercept some RTAS calls from the guest directly. This is used to implement the more efficient in-kernel XICS for example. qemu is still responsible for assigning the RTAS token numbers however, and needs to

[Qemu-devel] [PATCH v3 4/8] xics: minor changes and cleanups

2013-08-18 Thread Alexey Kardashevskiy
Before XICS-KVM comes, it makes sense to clean up the emulated XICS a bit. This does: 1. add assert in ics_realize() 2. change variable names from k to more informative ones 3. add const to every TypeInfo 4. replace fprintf(stderr, ...\n) with error_report 5. replace old style qdev_init_nofail()

[Qemu-devel] [PATCH v3 3/8] xics: move registration of global state to realize()

2013-08-18 Thread Alexey Kardashevskiy
Registration of global state belongs into realize so move it there. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: Andreas Färber afaer...@suse.de --- hw/intc/xics.c | 21 +++-- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/hw/intc/xics.c

[Qemu-devel] [PATCH v3 2/8] xics: add pre_save/post_load/cpu_setup dispatchers

2013-08-18 Thread Alexey Kardashevskiy
The upcoming support of in-kernel XICS will redefine migration callbacks for both ICS and ICP so classes and callback pointers are added. This adds a cpu_setup callback to the XICS device class (as XICS-KVM will do it different) and xics_dispatch_cpu_setup(). This also moves the place where

[Qemu-devel] [PATCH v3 5/8] xics: split to xics and xics-common

2013-08-18 Thread Alexey Kardashevskiy
The upcoming XICS-KVM support will use bits of emulated XICS code. So this introduces new level of hierarchy - xics-common class. Both emulated XICS and XICS-KVM will inherit from it and override class callbacks when required. The new xics-common class implements: 1. replaces static nr_irqs and