Re: [Qemu-devel] Agenda items for today's MTTCG call

2015-10-01 Thread Alexander Spyridakis
> do we have some clear instructions about how to set the whole thing up using > the latest publicly available code? (Which patches to apply, in which order > etc)? > > Btw these instructions could go in the dedicated MTTCG wiki page of QEMU as > well I guess.. Hi Claudio, You can find mttcg +

Re: [Qemu-devel] [kvm-unit-tests PATCH 2/2] arm/arm64 config: Fix arch_clean rule

2015-09-07 Thread Alexander Spyridakis
On 7 September 2015 at 16:37, Andrew Jones wrote: > +SHELL := /bin/bash This indeed fixed the issue. Thanks.

Re: [Qemu-devel] [kvm-unit-tests PATCH 2/2] arm/arm64 config: Fix arch_clean rule

2015-09-07 Thread Alexander Spyridakis
On 4 September 2015 at 16:05, Andrew Jones wrote: > This doesn't reproduce for me. I did the following, and it worked > fine. > > make distclean > ./configure --arch=arm --cross-prefix=arm-linux-gnu- > make > ./configure --arch=arm64 --cross-prefix=aarch64-linux-gnu- > make clean && make Ok I thi

Re: [Qemu-devel] [kvm-unit-tests PATCH 2/2] arm/arm64 config: Fix arch_clean rule

2015-09-04 Thread Alexander Spyridakis
On 4 September 2015 at 16:05, Andrew Jones wrote: > This doesn't reproduce for me. I did the following, and it worked > fine. > > make distclean > ./configure --arch=arm --cross-prefix=arm-linux-gnu- > make > ./configure --arch=arm64 --cross-prefix=aarch64-linux-gnu- > make clean && make This is

Re: [Qemu-devel] [kvm-unit-tests PATCH 2/2] arm/arm64 config: Fix arch_clean rule

2015-09-04 Thread Alexander Spyridakis
On 4 September 2015 at 12:48, Andrew Jones wrote: > The lines this > patch adds are already there. See the arm_clean target in > config/config-arm-common.mak. I see your point now. Maybe then "arm_clean" should be changed in "arch_clean" in config-arm-common.mak? Regards.

Re: [Qemu-devel] [kvm-unit-tests PATCH 2/2] arm/arm64 config: Fix arch_clean rule

2015-09-04 Thread Alexander Spyridakis
On 4 September 2015 at 12:48, Andrew Jones wrote: > Are you also running configure (with the opposite arch selected) after > 'make clean'? If not, then that could be the source of your problems. > Anyway, please describe the issues you're seeing because I don't see > what this patch is doing that

[Qemu-devel] [kvm-unit-tests PATCH 2/2] arm/arm64 config: Fix arch_clean rule

2015-09-02 Thread Alexander Spyridakis
Properly clean any generated object and binary files after a 'make clean', this fixes an issue when trying to reconfigure between arm and arm64. Signed-off-by: Alexander Spyridakis --- config/config-arm.mak | 2 ++ config/config-arm64.mak | 3 ++- 2 files changed, 4 insertions(+),

[Qemu-devel] [kvm-unit-tests PATCH 1/2] arm/arm64: Add self-modifying code test

2015-09-02 Thread Alexander Spyridakis
Basic torture test that continuously modifies a single instruction opcode and checks if all modifications were done and run as expected. Signed-off-by: Alexander Spyridakis --- arm/self-modifying-test.c| 109 +++ config/config-arm-common.mak | 2

[Qemu-devel] [kvm-unit-tests PATCH 0/2] arm/arm64: Add self-modifying code test case

2015-09-02 Thread Alexander Spyridakis
The test case is meant for testing the new mttcg implementation, although it was also verified on KVM targets like Arndale and OMAP5-uevm for ARMv7 and the Juno board (aarch32 and aarch64 guests) for ARMv8. Alexander Spyridakis (2): arm/arm64: Add self-modifying code test arm/arm64 c

Re: [Qemu-devel] Self-modifying test case for mttcg

2015-07-23 Thread Alexander Spyridakis
On 23 July 2015 at 12:04, Andrew Jones wrote: > One more observation; to make this work for aarch64 you'll need to modify > your instruction modification. The add immediate can't be changed with > +-1 like it can for arm. Please make sure the code works for both, even > if you need to do > > #ifde

Re: [Qemu-devel] Self-modifying test case for mttcg

2015-07-22 Thread Alexander Spyridakis
Hello Andrew, First, thanks for the comments. On 22 July 2015 at 14:38, Andrew Jones wrote: > I took a quick look at this and see issues with the test code. First, > you're spinning on a stack variable with this, > > /* Wait for our turn */ > while(next_cpu != cpu); > > next_cpu needs to

[Qemu-devel] Self-modifying test case for mttcg

2015-07-21 Thread Alexander Spyridakis
Hello all, You can find a new self-modifying test case in the following branch: > git clone https://git.virtualopensystems.com/dev/tcg_baremetal_tests.git -b > smc_test For each core, the test will run a small assembly snippet which increments a variable. Immediately after, the snippet is modifi

Re: [Qemu-devel] TCG baremetal tests repo

2015-06-25 Thread Alexander Spyridakis
On 25 June 2015 at 18:01, Frederic Konrad wrote: > I just tested this with vexpress, seems ATOMIC is not defined by default it > uses: Wow nice catch! Somehow between revision the define was no longer propagated and ATOMIC was not defined at all. Tested with 8 cores and no more errors. As you sa

Re: [Qemu-devel] [RFC PATCH] target-arm/psci.c: wake up sleeping CPUs (MTTCG)

2015-06-24 Thread Alexander Spyridakis
On 24 June 2015 at 17:34, Alex Bennée wrote: > Testing with Alexander's bare metal syncronisation tests fails in MTTCG > leaving one CPU spinning forever waiting for the second CPU to wake up. > We simply need to poke the halt_cond once we have processed the PSCI > power on call. Thanks Alex. Wor

[Qemu-devel] TCG baremetal tests repo

2015-06-22 Thread Alexander Spyridakis
Hello all, You can find the latest tcg atomic test payload in the following repo: > git clone https://git.virtualopensystems.com/dev/tcg_baremetal_tests.git You also need an arm baremetal cross-compiler like arm-none-gnueabi- (arm) and the usual aarch64-linux-gnu- (arm64). Due to a PSCI bug in th

Re: [Qemu-devel] [PATCH RFC 0/2] virt bare-metal payload infrastructure with atomic test case

2015-05-11 Thread Alexander Spyridakis
Hello Paolo, On 7 May 2015 at 14:55, Paolo Bonzini wrote: >> For the example spinlock test, racing errors could not be reproduced in >> the default single-threaded TCG, even with a non-atomic lock. In KVM the >> expected behaviour of no errors with regular locks, and some errors with >> a non-ato

Re: [Qemu-devel] [PATCH 2/2] atomic-test: Add spinlock test case

2015-05-11 Thread Alexander Spyridakis
Hi Andrew, On 11 May 2015 at 12:17, Andrew Jones wrote: > > + > > +void atomic_lock(int *lock_var) > > +{ > > +while (__sync_lock_test_and_set(lock_var, 1)); > > +} > > + > > +void atomic_unlock(int *lock_var) > > +{ > > +__sync_lock_release(lock_var); > > +} > > Do these builtins actuall

[Qemu-devel] [PATCH RFC 1/2] atomic-test: Implement ARM and AARCH64 basic bare-metal infrastructure

2015-05-07 Thread Alexander Spyridakis
similar manner this test is standalone and not part of 'make check'. Suggested-by: Jani Kokkonen Suggested-by: Claudio Fontana Signed-off-by: Alexander Spyridakis --- tests/atomic-test/Makefile | 63 ++ tests/atomic-test/helpers.c | 84 te

[Qemu-devel] [PATCH 2/2] atomic-test: Add spinlock test case

2015-05-07 Thread Alexander Spyridakis
Signed-off-by: Alexander Spyridakis --- tests/atomic-test/Makefile | 3 +++ tests/atomic-test/helpers.c | 21 + tests/atomic-test/helpers.h | 12 tests/atomic-test/main.c| 35 ++- tests/atomic-test/printf.c | 5 + 5 files

[Qemu-devel] [PATCH RFC 0/2] virt bare-metal payload infrastructure with atomic test case

2015-05-07 Thread Alexander Spyridakis
lock was observed. Next steps are to test multi-threaded TCG with this kind of payloads, extend the infrastructure to more complex and sensitive test cases, as well as support different architectures. This work has been sponsored by Huawei Technologies Dusseldorf GmbH. Alexander Spyridak

Re: [Qemu-devel] vexpress: Framebuffer broken with KVM enabled

2015-02-16 Thread Alexander Spyridakis
On Mon, Feb 16, 2015 at 2:43 PM, Jan Kiszka wrote: > Hi, > > next issue related to KVM/QEMU on the TK1: The guest image I'm running > gives proper framebuffer output when in emulation mode. Once KVM is > enabled, the screen is - at best - only initially updated. Sometimes I > see the famous tux im

Re: [Qemu-devel] [PATCH v4 0/4] target-arm: ARM64: Adding EL1 AARCH32 guest support

2015-02-11 Thread Alexander Spyridakis
on the Juno board with an ARMv7 bare metal binary and it worked as expected. Thanks. Tested-by: Alexander Spyridakis

Re: [Qemu-devel] KVM call for agenda for 2014-12-08

2014-12-09 Thread Alexander Spyridakis
Hello, Is this call still going to happen today? I haven't yet received the contact details. Thanks and best regards.

Re: [Qemu-devel] [Linaro-acpi] [RFC PATCH 0/7] hw/arm/virt: Dynamic ACPI v5.1 table generation

2014-11-06 Thread Alexander Spyridakis
On 6 November 2014 14:44, Peter Maydell wrote: > > > > We need ACPI guest support in QEMU for AArch64 over here, with all features > > (including the ability to run ACPI code and add specific tables), for > > ACPI-based guests. > > The plan for providing ACPI to guests is that we run a UEFI BIOS >

[Qemu-devel] [RFC PATCH 2/7] hw/arm/virt-acpi: Basic skeleton for dynamic generation of ACPI tables

2014-10-31 Thread Alexander Spyridakis
system devices/peripherals - FACS: Needs to be pointed from FADT Signed-off-by: Alexander Spyridakis Signed-off-by: Alvise Rigo --- hw/arm/Makefile.objs | 2 +- hw/arm/virt-acpi.c | 84 ++ include/hw/arm/virt-acpi.h | 52 +

[Qemu-devel] [RFC PATCH 5/7] hw/arm/virt-acpi: GIC and Arch Timer definitions in MADT and GTDT

2014-10-31 Thread Alexander Spyridakis
subtables are used to define the GIC regions. Signed-off-by: Alexander Spyridakis --- hw/arm/virt-acpi.c | 65 +--- include/hw/acpi/acpi-defs.h | 73 - include/hw/arm/virt-acpi.h | 6 3 files changed

[Qemu-devel] [RFC PATCH 6/7] hw/arm/virt-acpi: Generation of DSDT including virt devices

2014-10-31 Thread Alexander Spyridakis
- NAND Flash - virtio-mmio Signed-off-by: Alexander Spyridakis --- hw/arm/virt-acpi.c | 284 +++- include/hw/acpi/acpi-defs.h | 34 ++ include/hw/arm/virt-acpi.h | 9 ++ 3 files changed, 325 insertions(+), 2 deletions(-) diff --git a/hw/arm

[Qemu-devel] [RFC PATCH 1/7] hw/i386: Move ACPI header definitions in an arch-independent location

2014-10-31 Thread Alexander Spyridakis
The ACPI related header file acpi-defs.h, includes definitions that apply on other architectures as well. Move it in `include/hw/acpi/` to sanely include it from other architectures. Signed-off-by: Alvise Rigo --- hw/i386/acpi-build.c| 2 +- hw/i386/acpi-defs.h | 368 --

[Qemu-devel] [RFC PATCH 0/7] hw/arm/virt: Dynamic ACPI v5.1 table generation

2014-10-31 Thread Alexander Spyridakis
build 5206 and the Juno development board. For kernel and driver support it is based on the "Introduce ACPI for ARM64 based on ACPI 5.1" and "Drivers for Juno to boot from ACPI" patch series from Hanjun Guo. Alexander Spyridakis (7): hw/i386: Move ACPI header definitions in

[Qemu-devel] [RFC PATCH 7/7] hw/arm/virt: Enable dynamic generation of ACPI v5.1 tables

2014-10-31 Thread Alexander Spyridakis
Expose the needed device information to the table generation insfrastructure and assemble the final compacted ACPI binary blob in the guest memory. Signed-off-by: Alvise Rigo --- hw/arm/boot.c| 26 + hw/arm/virt-acpi.c | 18 +- hw/arm/virt.c

[Qemu-devel] [RFC PATCH 4/7] hw/arm/virt-acpi: Generate FACS and FADT, update ACPI headers

2014-10-31 Thread Alexander Spyridakis
FADT and FACS taking into account the new additions of ACPI v5.1 in `include/hw/acpi/acpi-defs.h` Signed-off-by: Alexander Spyridakis Signed-off-by: Alvise Rigo --- hw/arm/virt-acpi.c | 41 +++-- include/hw/acpi/acpi-defs.h | 141 ++-- 2

[Qemu-devel] [RFC PATCH 3/7] hw/arm/virt-acpi: Generate RSDP and XSDT, add helper functions

2014-10-31 Thread Alexander Spyridakis
being FACS and DSDT which are pointed from FADT). Finally implement a common header and checksum helper functions for usage in all generated ACPI tables. Signed-off-by: Alexander Spyridakis Signed-off-by: Alvise Rigo --- hw/arm/virt-acpi.c | 93

Re: [Qemu-devel] [PATCH 1/6] Added aarch64 configure support and default configuration

2013-07-01 Thread Alexander Spyridakis
On 29 June 2013 21:20, Peter Maydell wrote: > So this is enabling support for emulating 32 bit VMs with a > QEMU running as a 64 bit process, but the commit message > doesn't mention this. Did you test that combination? Nope, this case is not handled. Currently it won't crash but of course won't

Re: [Qemu-devel] [PATCH 6/6] Added SMP for Aarch64 Processors.

2013-07-01 Thread Alexander Spyridakis
On 29 June 2013 21:24, Peter Maydell wrote: > On 28 June 2013 13:11, Mian M. Hamayun > wrote: >> From: Alexander Spyridakis >> >> AArch64 uses a cpu-release-addr memory location (defined in the dts) as >> a way to inform secondary CPUs where to jump to and enter

Re: [Qemu-devel] [PATCH 4/6] Added the Versatile Express Machine Model for A57

2013-07-01 Thread Alexander Spyridakis
On 29 June 2013 21:21, Peter Maydell wrote: > On 28 June 2013 13:11, Mian M. Hamayun > wrote: > > From: "Mian M. Hamayun" > > > > The vexpress model for A57 is based on the A15 machine model with a few > > changes in the daughterboard initialization (using a subset of A15 > > functionality). Th

Re: [Qemu-devel] [PATCH 3/6] Added Aarch64 CPU Initialization, Get and Put Registers Support.

2013-07-01 Thread Alexander Spyridakis
On 29 June 2013 21:17, Peter Maydell wrote: > > > +#ifdef TARGET_AARCH64 > > +int kvm_arch_init_vcpu(CPUState *cs) > > +{ > > +struct kvm_vcpu_init init; > > +int ret; > > + > > +/* Try initializing with Foundation Models */ > > +init.target = KVM_ARM_TARGET_FOUNDATION_V8; > > +

Re: [Qemu-devel] [kvmarm] [PATCH] arm: vexpress: Clear sysctl cfgctrl start bit

2013-01-24 Thread Alexander Spyridakis
On 24 January 2013 19:57, Peter Maydell wrote: > It appears to be one of the reasons. The other is that > the kernel is trashing the device tree because it > happens to be sitting in the same page as the last > part-page of the initrd, and free_initrd_mem() rounds > up to a page boundary when poi