Re: [Qemu-devel] [Bug 1262081] Re: qemu-system-sparc in qemu 1.7.0 fails to boot with Sun ROM

2013-12-28 Thread Artyom Tarasenko
On Tue, Dec 24, 2013 at 3:22 PM, Mark Cave-Ayland wrote: > On 23/12/13 21:00, Peter Bartoli wrote: > >>> I currently have patches for a CG3 framebuffer pending that will enable >>> you to boot Solaris into graphics mode, which I hope will be applied >>> soon. >> >> >> That is AWESOME news. Really

Re: [Qemu-devel] [RFC PATCH] qcow2: add a readahead cache for qcow2_decompress_cluster

2013-12-28 Thread Peter Lieven
Am 27.12.2013 04:23, schrieb Fam Zheng: > On 2013年12月27日 00:19, Peter Lieven wrote: >> while evaluatiing compressed qcow2 images as a good basis for >> virtual machine templates I found out that there are a lot >> of partly redundant (compressed clusters have common physical >> sectors) and relativ

Re: [Qemu-devel] [RFC PATCH] qcow2: add a readahead cache for qcow2_decompress_cluster

2013-12-28 Thread Peter Lieven
Am 28.12.2013 16:35, schrieb Peter Lieven: > Am 27.12.2013 04:23, schrieb Fam Zheng: >> On 2013年12月27日 00:19, Peter Lieven wrote: >>> while evaluatiing compressed qcow2 images as a good basis for >>> virtual machine templates I found out that there are a lot >>> of partly redundant (compressed clus

[Qemu-devel] correct TCG_CALL_* flags for helpers which directly access env fields?

2013-12-28 Thread Peter Maydell
Hi; just wanted to check my understanding of how the TCG_CALL_* flags work. In particular, for the fairly common case of helpers which read or write fields in the CPU state via being passed an 'env' pointer, what are the correct flags? Assuming the fields it accesses aren't also being used for TCG

Re: [Qemu-devel] [Bug 1262081] qemu-system-sparc in qemu 1.7.0 fails to boot with Sun ROM

2013-12-28 Thread Artyom Tarasenko
> Also Artyom's blog is quite out of date with respect to OpenBIOS - OpenBIOS > has been able to boot my test Solaris 8 image for over 2 years now so you > may find that you can get by without the proprietary Sun ROM (and avoid > having to manually type a boot command into OBP every time you restar

Re: [Qemu-devel] [Bug 1262081] qemu-system-sparc in qemu 1.7.0 fails to boot with Sun ROM

2013-12-28 Thread Mark Cave-Ayland
On 28/12/13 17:30, Artyom Tarasenko wrote: Also Artyom's blog is quite out of date with respect to OpenBIOS - OpenBIOS has been able to boot my test Solaris 8 image for over 2 years now so you may find that you can get by without the proprietary Sun ROM (and avoid having to manually type a boot

Re: [Qemu-devel] [Bug 1262081] qemu-system-sparc in qemu 1.7.0 fails to boot with Sun ROM

2013-12-28 Thread Artyom Tarasenko
On Sat, Dec 28, 2013 at 6:52 PM, Mark Cave-Ayland wrote: > On 28/12/13 17:30, Artyom Tarasenko wrote: > >>> Also Artyom's blog is quite out of date with respect to OpenBIOS - >>> OpenBIOS >>> has been able to boot my test Solaris 8 image for over 2 years now so you >>> may find that you can get by

[Qemu-devel] [PATCH 07/10] target-arm: A64: Add support for floating point compare

2013-12-28 Thread Peter Maydell
From: Claudio Fontana Add decoding support for C3.6.22 Floating-point compare. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell --- target-arm/helper-a64.c| 45 target-arm/helper-a64.h| 4 +++ target-arm/translate-a64.c | 65 +++

[Qemu-devel] [PATCH 06/10] target-arm: A64: Add fmov (scalar, immediate) instruction

2013-12-28 Thread Peter Maydell
From: Alexander Graf This patch adds emulation for the fmov instruction working on scalars with an immediate payload. Signed-off-by: Alexander Graf [WN: Commit message tweak, rebase and use new infrastructure.] Signed-off-by: Will Newton Signed-off-by: Peter Maydell --- target-arm/translate-

[Qemu-devel] [PATCH 04/10] target-arm: A64: Add "Floating-point data-processing (2 source)" insns

2013-12-28 Thread Peter Maydell
From: Alexander Graf This patch adds emulation for the "Floating-point data-processing (2 source)" group of instructions. Signed-off-by: Alexander Graf [WN: Commit message tweak, merge single and double precision patches. Rebase and update to new infrastructure. Incorporate FMIN/FMAX support p

[Qemu-devel] [PATCH 00/10] A64 decoder patchset 5: most floating point

2013-12-28 Thread Peter Maydell
Kronecker may have said that "God made the integers, all the rest is the work of man"; however he did not suggest who we should blame for float-to-integer conversions. Those turn out to be sufficiently tricky that they're going to get a patchset all of their own. In the meantime this is most of the

[Qemu-devel] [PATCH 01/10] target-arm: A64: Add support for dumping AArch64 VFP register state

2013-12-28 Thread Peter Maydell
From: Alexander Graf When dumping the current CPU state, we can also get a request to dump the FPU state along with the CPU's integer state. Add support to dump the VFP state when that flag is set, so that we can properly debug code that modifies floating point registers. Signed-off-by: Alexand

[Qemu-devel] [PATCH 02/10] target-arm: A64: Fix vector register access on bigendian hosts

2013-12-28 Thread Peter Maydell
The A64 128 bit vector registers are stored as a pair of uint64_t values in the register array. This means that if we're directly loading or storing a value of size less than 64 bits we must adjust the offset appropriately to account for whether the host is bigendian or not. Provide utility functio

[Qemu-devel] [PATCH 08/10] target-arm: A64: Add support for floating point conditional compare

2013-12-28 Thread Peter Maydell
From: Claudio Fontana This adds decoding support for C3.6.23 FP Conditional Compare. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/target-arm/tr

[Qemu-devel] [PATCH 09/10] target-arm: A64: Add support for floating point cond select

2013-12-28 Thread Peter Maydell
From: Claudio Fontana This adds decoding support for C3.6.24 FP conditional select. Signed-off-by: Claudio Fontana Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 45 - 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/targ

[Qemu-devel] [PATCH 03/10] target-arm: Use VFP_BINOP macro for min, max, minnum, maxnum

2013-12-28 Thread Peter Maydell
Use the VFP_BINOP macro to provide helpers for min, max, minnum and maxnum, rather than hand-rolling them. (The float64 max version is not used by A32 but will be needed for A64.) Signed-off-by: Peter Maydell --- target-arm/helper.c | 29 - target-arm/helper.h

[Qemu-devel] [PATCH 10/10] target-arm: Give the FPSCR rounding modes names

2013-12-28 Thread Peter Maydell
From: Alexander Graf When setting rounding modes we currently just hardcode the numeric values for rounding modes in a big switch statement. With AArch64 support coming, we will need to refer to these rounding modes at different places throughout the code though, so let's better give them names

[Qemu-devel] [PATCH 05/10] target-arm: A64: Add "Floating-point data-processing (3 source)" insns

2013-12-28 Thread Peter Maydell
From: Alexander Graf This patch adds emulation for the "Floating-point data-processing (3 source)" group of instructions. Signed-off-by: Alexander Graf [WN: Commit message tweak, merged single and double precision patches. Implement using muladd as suggested by Richard Henderson.] Signed-off-b

[Qemu-devel] [PATCH 1/9] acpi: factor out common cpu hotplug code for PIIX4/Q35

2013-12-28 Thread Igor Mammedov
.. so it could be used for adding CPU hotplug to Q35 machine Signed-off-by: Igor Mammedov --- hw/acpi/Makefile.objs | 2 +- hw/acpi/cpu_hotplug.c | 64 +++ hw/acpi/piix4.c | 77 --- include/hw/

[Qemu-devel] [PATCH 0/9 v2] pc: CPU hotplug support for Q35

2013-12-28 Thread Igor Mammedov
Changes since v1: * renamed hotplug.c/.h to cpu_hotplug.c/.h * make all prefixes acpi_cpu_hotplug and AcpiCpuHotplug * updated docs/specs/acpi_cpu_hotplug.txt with Q35's IO port range * exclude CPU/PCI/GPE IO ranges from resources advertised in PCI bus _CRS * advertise CPU hotplug IO

[Qemu-devel] [PATCH 6/9] pc: Q35 DSDT: exclude CPU hotplug IO range from PCI bus resources

2013-12-28 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-dsdt-pci-crs.dsl | 7 --- hw/i386/acpi-dsdt.dsl | 7 +++ hw/i386/q35-acpi-dsdt.dsl | 7 +++ 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/hw/i386/acpi-dsdt-pci-crs.dsl b/hw/i386/acpi-dsdt-pci-crs.dsl index 8b6

[Qemu-devel] [PATCH 5/9] pc: PIIX DSDT: exclude CPU/PCI hotplug & GPE0 IO range from PCI bus resources

2013-12-28 Thread Igor Mammedov
.. so that they might not be used by PCI devices. Note: Resort to concatenating templates with preprocessor help, because 1.0b spec isn't supporting ConcatenateResTemplate, as result Windows XP fails to execute PCI0._CRS method if ConcatenateResTemplate() is used. Signed-off-by: Igor Mammedov --

[Qemu-devel] [PATCH 4/9] pc: set PRST base in DSDT depending on chipset

2013-12-28 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 2 +- hw/i386/acpi-dsdt.dsl | 1 + hw/i386/q35-acpi-dsdt.dsl | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/i386/acpi-dsdt-cpu-hotplug.dsl b/hw/i386/acpi-dsdt-cpu-hotplug.dsl index 9

[Qemu-devel] [PATCH 3/9] pc: rebuild ACPI hex files if included *.dsl are touched

2013-12-28 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/Makefile.objs | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/i386/Makefile.objs b/hw/i386/Makefile.objs index 09ac433..edf5256 100644 --- a/hw/i386/Makefile.objs +++ b/hw/i386/Makefile.objs @@ -16,7 +16,12 @@ iasl-option=$(she

[Qemu-devel] [PATCH 9/9] pc: ACPI: update acpi-dsdt.hex.generated q35-acpi-dsdt.hex.generated

2013-12-28 Thread Igor Mammedov
Signed-off-by: Igor Mammedov --- hw/i386/acpi-dsdt.hex.generated | 328 +++- hw/i386/q35-acpi-dsdt.hex.generated | 133 --- 2 files changed, 362 insertions(+), 99 deletions(-) diff --git a/hw/i386/acpi-dsdt.hex.generated b/hw/i386/acpi-dsdt.hex.gen

[Qemu-devel] [PATCH 7/9] pc: ACPI: expose PRST IO range via _CRS

2013-12-28 Thread Igor Mammedov
.. so OSPM could notice resource conflict if there is any. Signed-off-by: Igor Mammedov --- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hw/i386/acpi-dsdt-cpu-hotplug.dsl b/hw/i386/acpi-dsdt-cpu-hotplug.dsl index 1dfbb4f..869a

[Qemu-devel] [PATCH 8/9] pc: ACPI: unify source of CPU hotplug IO base/len

2013-12-28 Thread Igor Mammedov
use C headers defines as source of IO base/len for respective values in ASL code. Signed-off-by: Igor Mammedov --- hw/acpi/ich9.c| 4 +--- hw/acpi/piix4.c | 5 ++--- hw/i386/Makefile.objs | 9 +++-- hw/i386/acpi-dsdt-cpu-hotplug.dsl | 7 -

[Qemu-devel] [PATCH 2/9] acpi: ich9: add CPU hotplug handling to Q35 machine

2013-12-28 Thread Igor Mammedov
.. use IO port 0xcd8-0xcf7 range for CPU present bitmap Signed-off-by: Igor Mammedov --- docs/specs/acpi_cpu_hotplug.txt | 4 +++- hw/acpi/ich9.c | 16 include/hw/acpi/ich9.h | 4 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/doc

[Qemu-devel] Paged Real Mode in SVM

2013-12-28 Thread Chauhan, Himanshu
Hi, Is the page real mode supported in Qemu while emulation SVM? -- Thanks = Himanshu =

[Qemu-devel] [PATCH] vl.c: move "if (fd < 0)" into "if (fd <= STDERR_FILENO)"

2013-12-28 Thread Chen Gang
For valid 'fd' (in most cases), it is enough to only check whether it is larger than STDERR_FILENO, so recommend to move "if (fd < 0)" into failure processing block. Signed-off-by: Chen Gang --- vl.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/vl.c b/vl.c index 2

Re: [Qemu-devel] [PATCH] vl.c: move "if (fd < 0)" into "if (fd <= STDERR_FILENO)"

2013-12-28 Thread Peter Maydell
On 28 December 2013 08:52, Chen Gang wrote: > For valid 'fd' (in most cases), it is enough to only check whether it > is larger than STDERR_FILENO, so recommend to move "if (fd < 0)" into > failure processing block. > @@ -1064,15 +1064,10 @@ static int parse_add_fd(QemuOpts *opts, void *opaque) >