[Qemu-devel] [PATCH v4 25/42] pc: acpi-build: generate pvpanic device description dynamically

2015-02-18 Thread Igor Mammedov
Drops AML template patching and allows to save some space in SSDT if pvpanic device doesn't exist by not including disabled device description into SSDT. It also makes device description smaller by replacing _STA method with named value and dropping _INI method. Signed-off-by: Igor Mammedov ---

[Qemu-devel] [PATCH v4 23/42] acpi: add aml_local() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 11 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 12 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index b91141e..fabd0ad 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -596,3

[Qemu-devel] [PATCH v4 10/42] acpi: add aml_arg() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 11 +++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 12 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 8207d9c..99d213c 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -397,6

[Qemu-devel] [PATCH v4 13/42] acpi: add aml_notify() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 9 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 10 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index bb1fbbc..3e187fa 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -427,6 +427

[Qemu-devel] [PATCH v4 20/42] acpi: include PkgLength size only when requested

2015-02-18 Thread Igor Mammedov
Named/Reserved{Field} definition uses PkgLength [1] encoding to specify field length, however it doesn't include size of PkgLength field itself, while other block objects that have explicit length of its body account for PkgLength size while encoding it [2]. This special casing isn't mentioned in A

[Qemu-devel] [PATCH v4 24/42] acpi: add aml_string() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 25 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 26 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index fabd0ad..57a65dd 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-buil

[Qemu-devel] [PATCH v4 28/42] acpi: add aml_processor() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 15 +++ include/hw/acpi/aml-build.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 97b027c..9081b49 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -6

[Qemu-devel] [PATCH v4 33/42] pc: acpi-build: drop template patching and memory hotplug objects dynamically

2015-02-18 Thread Igor Mammedov
in addition it saves us ~330LOC and makes it one binary blob less stored in QEMU source tree by removing need to keep and update hw/i386/ssdt-mem.hex.generated file there. Signed-off-by: Igor Mammedov --- hw/i386/Makefile.objs | 1 - hw/i386/acpi-build.c | 112 +---

[Qemu-devel] [PATCH v4 21/42] acpi: add aml_operation_region() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 14 ++ include/hw/acpi/aml-build.h | 7 +++ 2 files changed, 21 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index cc883cc..d72d5b4 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @

[Qemu-devel] [PATCH v4 42/42] pc: acpi-build: drop template patching and create Device(SMC) dynamically

2015-02-18 Thread Igor Mammedov
patch moves SMC device into SSDT and creates it only when device is present, which makes ACPI tables smaller in default case when device is not present. PS: also it fixes wrong IO range in CRS if "iobase" property is set to a not default value. Signed-off-by: Igor Mammedov --- hw/i386/acpi-buil

[Qemu-devel] [PATCH v4 35/42] acpi: add aml_word_bus_number(), aml_word_io(), aml_dword_memory(), aml_qword_memory() terms

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 161 include/hw/acpi/aml-build.h | 72 2 files changed, 233 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 9d9b978..d793775 100644 --- a/h

[Qemu-devel] [PATCH v4 36/42] pc: pcihp: expose MMIO base and len as properties

2015-02-18 Thread Igor Mammedov
it will be used later to dynamically reserve MMIO region instead of manually punching holes in PCI0._CRS Signed-off-by: Igor Mammedov --- hw/acpi/pcihp.c | 18 -- hw/acpi/piix4.c | 2 +- include/hw/acpi/pcihp.h | 7 ++- 3 files changed, 19 insertions(+), 8 d

[Qemu-devel] [PATCH v4 34/42] pc: acpi-build: create memory hotplug IO region dynamically

2015-02-18 Thread Igor Mammedov
it replaces a static complied in DSDT MMIO region for memory hotplug with one created at runtime leaving only truly static memory hotplug related ASL bits in DSDT. And replaces template patching of MEMORY_SLOTS_NUMBER value with ASL API created named value. Later it also would make easier to reuse

[Qemu-devel] [PATCH v4 26/42] acpi: add aml_varpackage() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 8 include/hw/acpi/aml-build.h | 1 + 2 files changed, 9 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 57a65dd..36aafe4 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -632,3 +632,1

[Qemu-devel] [PATCH v4 27/42] acpi: add aml_equal() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 1 + 2 files changed, 11 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 36aafe4..97b027c 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -514,6 +

[Qemu-devel] [PATCH v4 32/42] acpi: add aml_reserved_field() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 10 ++ include/hw/acpi/aml-build.h | 6 ++ 2 files changed, 16 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index eeb006f..9d9b978 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c @@ -59

[Qemu-devel] [PATCH v4 37/42] pc: acpi-build: reserve PCIHP MMIO resources

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c index 98553f8..4d5d7e3 100644 --- a/hw/i386/acpi-build.c +++ b/hw/i386/acpi-build.c @@ -105,6 +105,8 @@ typedef struct

[Qemu-devel] [PATCH v4 38/42] pc: acpi-build: create PCI0._CRS dynamically

2015-02-18 Thread Igor Mammedov
Replace template patching and runtime calculation in _CRS() method with static _CRS defined in SSDT. It also drops manual hole patching for reserved PCI/MEM/CPU hoptlug MMIO resources and utilizes the fact that MMIO resources are reserved by respective child /i.e. PHPR, MHPD, PRES/ containers. Si

[Qemu-devel] [PATCH v4 29/42] acpi: add aml_eisaid() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 29 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 30 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index 9081b49..eeb006f 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-

[Qemu-devel] [PATCH v4 40/42] acpi: add acpi_irq_no_flags() term

2015-02-18 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/acpi/aml-build.c | 21 + include/hw/acpi/aml-build.h | 1 + 2 files changed, 22 insertions(+) diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c index d793775..60245e7 100644 --- a/hw/acpi/aml-build.c +++ b/hw/acpi/aml-build.c

[Qemu-devel] [PATCH v4 31/42] pc: acpi-build: create CPU hotplug IO region dynamically

2015-02-18 Thread Igor Mammedov
it replaces a static complied in DSDT MMIO region for CPU hotplug with one created at runtime leaving only truly static CPU hotplug related ASL bits in DSDT. It also puts CPU_HOTPLUG_RESOURCE_DEVICE into PCI0 scope and reserves resources from it, preparing for dropping manual hole punching in PCI0.

[Qemu-devel] [PATCH v4 41/42] pc: export applesmc IO port/len

2015-02-18 Thread Igor Mammedov
IO port and length will be used in following patch to correctly generate SMC ACPI device in SSDT. Signed-off-by: Igor Mammedov --- hw/i386/acpi-build.c | 2 +- hw/misc/applesmc.c | 5 ++--- include/hw/isa/isa.h | 11 +-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a

[Qemu-devel] [PATCH v4 39/42] pc: acpi-build: drop remaining ssdt_misc template

2015-02-18 Thread Igor Mammedov
It drops empty ssdt_misc templete. It also hides from user almost all pointer arithmetic when building SSDT which makes resulting code a bit cleaner and concentrating only on composing ASL construct /i.e. a task build_ssdt() should be doing/. Also it makes one binary blob less stored in QEMU sourc

[Qemu-devel] [PATCH v4 30/42] pc: acpi-build: drop template patching and CPU hotplug objects dynamically

2015-02-18 Thread Igor Mammedov
in addition it saves us ~400LOC and makes it one binary blob less stored in QEMU source tree by removing need to keep and update hw/i386/ssdt-proc.hex.generated file there. Signed-off-by: Igor Mammedov --- hw/i386/Makefile.objs | 7 ++-- hw/i386/acpi-build.c | 88 --

[Qemu-devel] [ANNOUNCE] SeaBIOS 1.8.0

2015-02-18 Thread Kevin O'Connor
The 1.8.0 version of SeaBIOS has now been released. For more information on the release, please see: http://seabios.org/Releases New in this release: * Several USB timing fixes for USB controllers on real hardware * Initial support for USB3 hubs * Initial support for SD cards (on QEMU only) *

Re: [Qemu-devel] [RFC PATCH 5/7] target-arm/cpu: Add apic_id property for ARMCPU

2015-02-18 Thread Igor Mammedov
On Wed, 18 Feb 2015 18:45:51 +0100 Andreas Färber wrote: > Hi, > > Am 17.02.2015 um 11:10 schrieb Shannon Zhao: > > Add apic_id property for ARMCPU. It can be used for cpu hotplug. > > > > Signed-off-by: Shannon Zhao > > --- > > target-arm/cpu-qom.h |1 + > > target-arm/cpu.c | 77 >

Re: [Qemu-devel] [PATCH] migration: Avoid qerror_report_err() outside QMP command handlers

2015-02-18 Thread Eric Blake
On 02/18/2015 11:21 AM, Markus Armbruster wrote: > qerror_report_err() is a transitional interface to help with > converting existing monitor commands to QMP. It should not be used > elsewhere. Replace by error_report_err() in > process_incoming_migration_co(). > > Signed-off-by: Markus Armbrust

Re: [Qemu-devel] [RFC PATCH 5/7] target-arm/cpu: Add apic_id property for ARMCPU

2015-02-18 Thread Andreas Färber
Am 18.02.2015 um 20:51 schrieb Igor Mammedov: > On Wed, 18 Feb 2015 18:45:51 +0100 > Andreas Färber wrote: > >> Hi, >> >> Am 17.02.2015 um 11:10 schrieb Shannon Zhao: >>> Add apic_id property for ARMCPU. It can be used for cpu hotplug. >>> >>> Signed-off-by: Shannon Zhao >>> --- >>> target-arm/

[Qemu-devel] [PULL 00/29] s390x guest reipl and page table handling

2015-02-18 Thread Christian Borntraeger
Peter, The following changes since commit cd2d5541271f1934345d8ca42f5fafff1744eee7: Merge remote-tracking branch 'remotes/rth/tags/pull-tcg-20150212' into staging (2015-02-13 11:44:50 +) are available in the git repository at: git://github.com/borntraeger/qemu.git tags/s390

[Qemu-devel] [PULL 12/29] s390x/mmu: Fix the exception codes for illegal table entries

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Each different level of region/segment table has a dedicated exception type for illegal entries. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- target-s390x/mmu_hel

[Qemu-devel] [PULL 04/29] s390x/ipl: make s390x ipl device aware of migration

2015-02-18 Thread Christian Borntraeger
From: Fan Zhang We have to migrate the reipl parameters, so a reboot on the migrated machine will behave just like on the origin. Otherwise, the reipl parameters configured by the guest would be lost. Reviewed-by: Cornelia Huck Reviewed-by: David Hildenbrand Acked-by: Christian Borntraeger Si

[Qemu-devel] [PULL 02/29] s390x/ipl: support diagnose 308 subcodes 5 and 6

2015-02-18 Thread Christian Borntraeger
From: Fan Zhang To support dynamically updating the IPL device from inside the KVM guest on the s390 platform, DIAG 308 instruction is intercepted in QEMU to handle the request. Subcode 5 allows to specify a new boot device, which is saved for later in the s390_ipl device. This also allows to sw

[Qemu-devel] [PULL 11/29] s390x/mmu: Fix exception types when checking the ASCEs

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth If an ASCE has illegal bits set, an ASCE-type exception should be generated instead of a translation specification exception. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeg

[Qemu-devel] [PULL 16/29] s390x/mmu: Clean up mmu_translate_asc()

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth We can get rid of the switch(asc) in mmu_translate_asc() by simply selecting the right control register ASCE in the mmu_translate() function already. This patch is based on an original patch/idea by Ralf Hoppe. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-

[Qemu-devel] [PULL 01/29] s390x/ipl: always load the bios for ccw machine

2015-02-18 Thread Christian Borntraeger
From: Fan Zhang We will need bios support in order to be able to support selecting a different boot device via diagnose 308 in the ccw machine, so let's make the bios mandatory for the ccw machine. Reviewed-by: Cornelia Huck Reviewed-by: David Hildenbrand Acked-by: Christian Borntraeger Signe

[Qemu-devel] [PULL 13/29] s390x/mmu: Add support for read-only regions

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth If the "DAT-protection" bit is set in the region table entry and EDAT is enabled, only read accesses are allowed in the corresponding memory area. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by

[Qemu-devel] [PULL 21/29] s390x/ioinst: Rework memory access in SSCH instruction

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Change the handler for SSCH to use the new logical memory access functions. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- target-s390x/ioinst.c | 16 +--- 1 file changed, 5 insertions

[Qemu-devel] [PULL 09/29] s390x/mmu: Skip exceptions properly when translating addresses for debug

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth When a fault occurs during the MMU lookup in s390_cpu_get_phys_page_debug(), the trigger_page_fault() function writes the translation exception code into the lowcore - something you would not expect during a memory access by the debugger. Ease this problem by adding an additiona

[Qemu-devel] [PULL 28/29] s390x/pci: Rework memory access in zpci instruction

2015-02-18 Thread Christian Borntraeger
From: Frank Blaschka Change zpci instructions to use the new logical memory access functions. Signed-off-by: Frank Blaschka Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- hw/s390x/s390-pci-inst.c | 37 - 1 file changed, 28 insertions

[Qemu-devel] [PULL 03/29] s390x/ipl: drop reipl parameters on resets

2015-02-18 Thread Christian Borntraeger
From: Fan Zhang Whenever a reboot initiated by the guest is done, the reipl parameters should remain valid. The disk configured by the guest is to be used for ipl'ing. External reboot/reset request (e.g. via virsh reset guest) should completely reset the guest to the initial state, and therefore

[Qemu-devel] [PULL 23/29] s390x/ioinst: Set condition code in ioinst_handle_tsch() handler

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Move the setting of the condition code from kvm.c into the handler function in ioinst.c itself, just like it has been done with the other handlers already (TSCH has just not been changed yet since it is called from a different dispatcher in kvm.c). Signed-off-by: Thomas Huth S

[Qemu-devel] [PULL 18/29] s390x/mmu: Add function for accessing guest memory

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth According to the POP specification, the parameter blocks of various functions like the IO instructions are accessed with logical addresses. Thus we need a function that can read or write a buffer from/to the guest's logical address space. This patch now provides a function that

[Qemu-devel] [PULL 06/29] s390x/mmu: Fix the check for the real-space designation bit

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth The real-space designation bits live in the ASCEs, not in the table entries, so the check must be done before we start walking the MMU table. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: David Hildenbrand Signed-off-by: Christian Borntraeger --- tar

[Qemu-devel] [PULL 10/29] s390x/mmu: Fix translation exception code in lowcore

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth The address space bits in the translation exception code were wrong. In fact, we can simply copy the bits from the PSW, so there's no need for the trans_bits() function anymore. Additionally, we now also set the fetch/store bits in the translation exception code, so a guest can

[Qemu-devel] [PULL 07/29] s390x/mmu: Fix the handling of the table levels

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth The current code used a wrong and very confusing way of dealing with the table levels by introducing a "fake level above current". However, the real problem was simply that the checks for the region/segment invalid bit and for the matching region/segment level was done at the wr

[Qemu-devel] [PULL 19/29] s390x/css: Make schib parameter of css_do_msch const

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth The schib parameter of css_do_msch() can be declared as const to make it clear that it does not get modified by this function. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: David Hildenbrand Acked-by: Cornelia Huck Signed-off-by: Christian Borntraeger

[Qemu-devel] [PULL 08/29] s390x/mmu: Check table length and offset fields

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth The ACSEs have a table length field and the region entries have table length and offset fields which must be checked during translation to see whether the given virtual address is really covered by the translation table. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann

[Qemu-devel] [PULL 22/29] s390x/ioinst: Rework memory access in STSCH instruction

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Change the handler for STSCH to use the new logical memory access functions. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- target-s390x/ioinst.c | 36 ++-- 1 file

[Qemu-devel] [PULL 20/29] s390x/ioinst: Rework memory access in MSCH instruction

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Change the handler for MSCH to use the new logical memory access functions. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- target-s390x/ioinst.c | 20 +++- 1 file changed, 7 insert

Re: [Qemu-devel] [PATCH v4 38/42] pc: acpi-build: create PCI0._CRS dynamically

2015-02-18 Thread Michael S. Tsirkin
On Wed, Feb 18, 2015 at 07:14:51PM +, Igor Mammedov wrote: > Replace template patching and runtime > calculation in _CRS() method with static _CRS > defined in SSDT. > > It also drops manual hole patching for reserved > PCI/MEM/CPU hoptlug MMIO resources and utilizes > the fact that MMIO resou

[Qemu-devel] [PULL 26/29] s390x/ioinst: Rework memory access in CHSC instruction

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Change the CHSC handler to correctly use logical addresses, too. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- target-s390x/ioinst.c | 22 +- 1

[Qemu-devel] [PULL 15/29] s390x/mmu: Check bit 52 in page table entry

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Bit 52 in a page table entry has always to be zero, or a translation specification exception is to be recognized. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Reviewed-by: David Hildenbrand Reviewed-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- tar

[Qemu-devel] [PULL 25/29] s390x/ioinst: Rework memory access in STCRW instruction

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Change the handler for STCRW to use the new logical memory access functions. Since STCRW is suppressed on protection/access exceptions, we also have to make sure to re-queue the CRW in case it could not be written to the memory. Signed-off-by: Thomas Huth Signed-off-by: Jens F

[Qemu-devel] [PULL 14/29] s390x/mmu: Renaming related to the ASCE confusion

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth An Address Space Control Element (ASCE) is only the very first unit of an s390 address translation (normally residing in one of the control registers). The entries in the page tables are called differently. So let's call the relevant variable pt_entry instead of asce in mmu_tran

[Qemu-devel] [PULL 29/29] s390x/helper: Remove s390_cpu_physical_memory_map

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth The function is now not used anymore, so it can be removed safely. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Acked-by: Cornelia Huck Reviewed-by: David Hildenbrand Signed-off-by: Christian Borntraeger --- target-s390x/cpu.h| 4 target-s390x/helper.

[Qemu-devel] [PULL 05/29] s390x/mmu: Move mmu_translate() and friends to separate file

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth helper.c is quite overcrowded already, so let's move the MMU translation to a separate file instead (like it has been done with the other targets already). Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Acked-by: Alexander Graf Signed-off-by: Christian Borntraeger

[Qemu-devel] [PULL 24/29] s390x/ioinst: Rework memory access in TSCH instruction

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Change the TSCH handler to use the new logical memory access functions. Since the channel should not be updated in case of a protection or access exception while writing to the guest memory, the css_do_tsch() has to be split up into two parts, one for retrieving the IRB and one

[Qemu-devel] [PULL 17/29] s390x/kvm: Add function for injecting pgm access exceptions

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Program access exceptions are defined to deliver a translation exception code in the low-core. Add a function trigger_access_exception() that generates the proper program interrupt on both KVM and non-KVM systems and switch the existing code to use it. Signed-off-by: Thomas Hut

[Qemu-devel] [PULL 27/29] s390x/ioinst: Rework memory access in TPI instruction

2015-02-18 Thread Christian Borntraeger
From: Thomas Huth Change the handler for TPI to use the new logical memory access functions. Signed-off-by: Thomas Huth Signed-off-by: Jens Freimann Acked-by: Cornelia Huck Signed-off-by: Christian Borntraeger --- target-s390x/ioinst.c | 19 +++ target-s390x/ioinst.h | 2 +-

Re: [Qemu-devel] [Fwd: [PATCH v2] vpc: Implement bdrv_co_get_block_status()]

2015-02-18 Thread Peter Lieven
Am 18.02.2015 um 21:57 schrieb Peter Lieven: > This implements bdrv_co_get_block_status() for VHD images. This can > significantly speed up qemu-img convert operation because only with this > function implemented sparseness can be considered. (Before, converting a > 1 TB empty image took several mi

[Qemu-devel] [PATCH] Makefile.target: set icon for binary file on Mac OS X

2015-02-18 Thread Programmingkid
This patch adds the instruction to have the build commands give QEMU an icon. This code runs on Mac OS X. Signed-off-by: John Arbuckle --- Makefile.target | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) mode change 100644 => 100755 Makefile.target diff --git

[Qemu-devel] [PULL 17/96] acpi, pc: Add hotunplug request cb for pc machine.

2015-02-18 Thread Michael S. Tsirkin
From: Tang Chen Memory and CPU hot unplug are both asynchronous procedures. They both need unplug request callback to initiate unplug operation. Add unplug handler to pc machine that will be used by following CPU and memory unplug patches. Reviewed-by: Igor Mammedov Signed-off-by: Tang Chen S

[Qemu-devel] [PULL 15/96] pci-assign: Convert to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/i386/kvm/pci-assign.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/p

[Qemu-devel] [PULL 13/96] cirrus-vga: Convert to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/display/cirrus_vga.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/display/cirrus_vga.c b/hw/display/cir

[Qemu-devel] [PULL 31/96] scripts/update-linux-headers.sh: pull virtio hdrs

2015-02-18 Thread Michael S. Tsirkin
It doesn't make sense to copy values manually: the only issue with getting headers from linux seems to be dealing with linux/types, we can easily fix that automatically while importing. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth --- scripts/update-linux-headers.sh | 41 +

[Qemu-devel] [PULL 05/96] acpi: drop min-bytes in build_package()

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Claudio Fontana Reviewed-by: Marcel Apfelbaum Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 4 ++-- hw/acpi/aml-build.c | 14 -- hw/i386/acpi-build.c

[Qemu-devel] [PULL 38/96] virtio-net,tap: use standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicated code. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth --- include/hw/virtio/virtio-net.h | 151 + include/net/tap.h | 24 +-- 2 files changed, 2 insertions(+), 173 deletions(-) diff --git a/include/hw/virtio/v

[Qemu-devel] [PULL 22/96] vl.c: Fix error messages when parsing maxmem parameters

2015-02-18 Thread Michael S. Tsirkin
From: Peter Krempa Produce more human readable error messages and fix few spelling mistakes. Also remove a redundant check for the max memory size. Signed-off-by: Peter Krempa Acked-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Signed-off-by: Peter Krempa --- vl.c | 34 +

[Qemu-devel] [PULL 18/96] acpi, ich9: Add hotunplug request cb for ich9.

2015-02-18 Thread Michael S. Tsirkin
From: Tang Chen Memory and CPU hot unplug are both asynchronous procedures. They both need unplug request cb when the unplug operation happens. This patch adds hotunplug request cb for ich9, and memory and CPU hot unplug will share it. Reviewed-by: Igor Mammedov Signed-off-by: Tang Chen Signe

[Qemu-devel] [PULL 06/96] pci: Convert core to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Implement DeviceClass methods realize() and unrealize() instead of init() and exit(). The core's initialization errors now get propagated properly, and QMP sends them instead of an unspecific "Device initialization failed" error. Unrealize can't fail, so no change there.

[Qemu-devel] [PULL 46/96] standard-headers: add s390 virtio headers

2015-02-18 Thread Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin --- include/standard-headers/asm-s390/kvm_virtio.h | 64 ++ include/standard-headers/asm-s390/virtio-ccw.h | 21 + 2 files changed, 85 insertions(+) create mode 100644 include/standard-headers/asm-s390/kvm_virtio.h create mode 10

[Qemu-devel] [PULL 29/96] acpi: has_immutable_rsdp->!rsdp_in_ram

2015-02-18 Thread Michael S. Tsirkin
As comment in acpi-build.c notes, RSDP is not really immutable. So it's really a question of whether it's in RAM, name the variable accordingly. Signed-off-by: Michael S. Tsirkin Reviewed-by: Igor Mammedov --- include/hw/i386/pc.h | 2 +- hw/i386/acpi-build.c | 2 +- hw/i386/pc_piix.c| 6 +

[Qemu-devel] [PULL 34/96] virtio: use standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop a bunch of code duplicated from virtio_config.h and virtio_ring.h. This makes us rename event index accessors which conflict, as reusing the ones from virtio_ring.h isn't trivial. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth --- hw/9pfs/virtio-9p.h| 1 + include/hw/v

[Qemu-devel] [PULL 14/96] qxl: Convert to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/display/qxl.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/hw/display/qxl.c b/h

[Qemu-devel] [PULL 28/96] acpi-build: fix ACPI RAM management

2015-02-18 Thread Michael S. Tsirkin
This fixes multiple issues around ACPI RAM management: RSDP and linker RAM aren't currently marked dirty on update, so they won't be migrated correctly. Let's handle all tables in the same way: set correct size (assert if too big), update, mark RAM dirty. This also drops assert checking that tab

[Qemu-devel] [PULL 10/96] pcnet: Convert to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/net/pcnet-pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c index 9677c1

[Qemu-devel] [PULL 30/96] acpi-build: simplify rsdp management for legacy

2015-02-18 Thread Michael S. Tsirkin
For legacy machine types, rsdp is not in RAM, so we need a copy of rsdp for fw cfg. We previously used g_array_free with false parameter, but this seems to confuse people. This also wastes a bit of memory as the buffer is unused for new machine types. Let's just use plain g_memdup, and free origin

[Qemu-devel] [PULL 16/96] qdev: Don't exit when running into bad -global

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster -global lets you set a nice booby-trap for yourself: $ qemu-system-x86_64 -nodefaults -S -display none -usb -monitor stdio -global usb-mouse.usb_version=l QEMU 2.1.94 monitor - type 'help' for more information (qemu) device_add usb-mouse Parameter 'usb_ve

[Qemu-devel] [PULL 19/96] acpi, pc: Add unplug cb for pc machine.

2015-02-18 Thread Michael S. Tsirkin
From: Tang Chen Memory and CPU hot unplug are both asynchronous procedures. When the unplug operation happens, unplug request cb is called first. And when guest OS finished handling unplug, unplug cb will be called to do the real removal of device. This patch adds hotunplug cb to pc machine, whi

[Qemu-devel] [PULL 24/96] acpi: update RSDP on guest access

2015-02-18 Thread Michael S. Tsirkin
RSDT offset can change across reboots and that makes immutable RSDP, which is build at startup, point to incorrect place in ACPI table blob. That results in BIOS corrupting tables and guest OS failing to find ACPI tables. We really should have put it in a ROM region, but we can't change that for ol

[Qemu-devel] [PULL 54/96] virtio-serial-bus.c: drop virtio_ids.h

2015-02-18 Thread Michael S. Tsirkin
virtio-serial.h pulls that in already. Reported-by: Thomas Huth Signed-off-by: Michael S. Tsirkin --- hw/char/virtio-serial-bus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c index ba4cf2e..9a029d2 100644 --- a/hw/char/virtio-seria

[Qemu-devel] [PULL 32/96] include: import virtio headers from linux 4.0

2015-02-18 Thread Michael S. Tsirkin
Add files imported from linux-next (what will become linux 4.0) using scripts/update-linux-headers.sh Signed-off-by: Michael S. Tsirkin --- include/standard-headers/linux/if_ether.h | 1 + include/standard-headers/linux/types.h | 2 + include/standard-headers/linux/virtio_9p.h

[Qemu-devel] [PULL 37/96] virtio-blk: switch to standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicated code. Minor codechanges were required as geometry is a sub-structure now. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth --- include/hw/virtio/virtio-blk.h | 77 +- hw/block/virtio-blk.c | 8 ++--- 2 files changed, 5

[Qemu-devel] [PULL 07/96] pci: Permit incremental conversion of device models to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Call the new PCIDeviceClass method realize(). Default it to pci_default_realize(), which calls old method init(). To convert a device model, make it implement realize() rather than init(). Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by:

[Qemu-devel] [PULL 39/96] virtio-rng: use standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicated code. Signed-off-by: Michael S. Tsirkin Reviewed-by: Thomas Huth --- include/hw/virtio/virtio-rng.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/hw/virtio/virtio-rng.h b/include/hw/virtio/virtio-rng.h index 14e85a5..7702ff4 100644 --- a/include/

[Qemu-devel] [PULL 61/96] acpi: add aml_method() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 9 + 2 files changed, 10 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/am

[Qemu-devel] [PULL 67/96] acpi: add aml_store() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 9 + 2 files changed, 10 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/am

[Qemu-devel] [PULL 26/96] pc: acpi-build: migrate RSDP table

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Makes sure that RSDP stays the same /i.e. matches ACPI tables blob in source/ if guest is migrated during RSDP reading or has been already shadowed by firmware. Fix applies only to new machine types starting from 2.3, so it won't break migration for old machine types. Signed

[Qemu-devel] [PULL 41/96] virtio-serial: switch to standard-headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicate code. Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio-serial.h | 40 +-- hw/char/virtio-serial-bus.c | 1 + 2 files changed, 2 insertions(+), 39 deletions(-) diff --git a/include/hw/virtio/virtio-serial.h b/include/hw/vir

[Qemu-devel] [PULL 01/96] acpi-build: fix memory leak with bridge hp off

2015-02-18 Thread Michael S. Tsirkin
When bridge hotplug is disabled for old machine types, we never free memory allocated for temporary tables. Fix this up. Cc: qemu-sta...@nongnu.org Signed-off-by: Michael S. Tsirkin --- hw/i386/acpi-build.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/i386/acpi-build.c b/hw/i386/acp

[Qemu-devel] [PULL 65/96] acpi: add aml_return() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 8 2 files changed, 9 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-

[Qemu-devel] [PULL 56/96] virtio_ring.h: s/__inline__/inline/

2015-02-18 Thread Michael S. Tsirkin
Thomas Huth noticed that some linux headers use __inline__, change to inline to be consistent with the rest of QEMU. Reported-by: Thomas Huth Signed-off-by: Michael S. Tsirkin --- include/standard-headers/linux/virtio_ring.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --gi

Re: [Qemu-devel] [PULL 00/96] pci, pc, virtio fixes and cleanups

2015-02-18 Thread Michael S. Tsirkin
On Wed, Feb 18, 2015 at 10:48:22PM +0100, Michael S. Tsirkin wrote: > On Wed, Feb 18, 2015 at 10:43:58PM +0100, Michael S. Tsirkin wrote: > > A huge patchset, but the scariest part is Igor's patches, > > and these have been used by multiple people by now. > > virtio header change is a bit rushed, b

[Qemu-devel] [PULL 71/96] acpi: add aml_package() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 8 2 files changed, 9 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi/aml-

[Qemu-devel] [PULL 44/96] virtio-pci: use standard headers

2015-02-18 Thread Michael S. Tsirkin
Drop duplicate code. Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-pci.c | 54 +- 1 file changed, 5 insertions(+), 49 deletions(-) diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index dde1d73..4b17ecb 100644 --- a/hw/virtio/

[Qemu-devel] [PULL 58/96] acpi: add aml_scope() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 3 +++ hw/acpi/aml-build.c | 20 2 files changed, 23 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/inc

[Qemu-devel] [PULL 11/96] serial-pci: Convert to realize

2015-02-18 Thread Michael S. Tsirkin
From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Gonglei --- hw/char/serial-pci.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/hw/char/serial-pci.c b/hw/char/

[Qemu-devel] [PULL 83/96] acpi: add aml_equal() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acpi

[Qemu-devel] [PULL 77/96] acpi: add aml_operation_region() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 7 +++ hw/acpi/aml-build.c | 14 ++ 2 files changed, 21 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/inclu

[Qemu-devel] [PULL 66/96] acpi: add aml_arg() term

2015-02-18 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- include/hw/acpi/aml-build.h | 1 + hw/acpi/aml-build.c | 11 +++ 2 files changed, 12 insertions(+) diff --git a/include/hw/acpi/aml-build.h b/include/hw/acp

<    1   2   3   4   >