[PATCH 1/2] kvm tools: arm: extract common timer support code for ARM cpus

2013-09-27 Thread Jonathan Austin
. The ability of a DT node to contain multiple compatible strings is exploited to allow an identical DT node to be used on V7 and V8 platforms. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com Acked-by: Will Deacon will.dea...@arm.com --- tools/kvm/Makefile |6 +-- tools

[PATCH 0/2] kvm tools: arm: support Cortex-A7 CPUs

2013-09-27 Thread Jonathan Austin
patches posted recently to the kvmarm list hit the kernel, as kvm-tool for ARM will not build if KVM_ARM_TARGET_CORTEX_A7 (added with that series) is not defined. Jonathan Austin (2): kvm tools: arm: extract common timer support code for ARM cpus kvm tools: arm: add support for ARM Cortex-A7

[PATCH 2/2] kvm tools: arm: add support for ARM Cortex-A7

2013-09-27 Thread Jonathan Austin
to the kvmarm list. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com --- tools/kvm/arm/aarch32/arm-cpu.c |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/kvm/arm/aarch32/arm-cpu.c b/tools/kvm/arm/aarch32/arm-cpu.c index 8817d2a..71b98fe 100644 --- a/tools/kvm

[PATCH v3 0/3] kvm tools: remove periodic tick

2013-09-11 Thread Jonathan Austin
/kvm__arch_read_term/ in patch2's coverletter - make term_poll_thread static - Added Marc's ack Changes since V2: - force the flushing of the tx queue for serial console emulation - test that this doesn't degrade performance considerably Jonathan Austin (3): kvm tools: use #define for maximum number

[PATCH v3 1/3] kvm tools: use #define for maximum number of terminal devices

2013-09-11 Thread Jonathan Austin
Though there may be no near-term plans to change the number of terminal devices in the future, using TERM_MAX_DEVS instead of '4' makes reading some of the loops over terminal devices clearer. This patch makes the this substitution where required. Signed-off-by: Jonathan Austin jonathan.aus

[PATCH v3 3/3] kvm tools: stop virtio console doing unnecessary input handling

2013-09-11 Thread Jonathan Austin
informing us of data to read). This patch adds synchronisation to the threads so that we don't start polling input files again until we've read from the console. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com Acked-by: Marc Zyngier marc.zyng...@arm.com --- tools/kvm/virtio/console.c | 23

[PATCH v3 2/3] kvm tools: remove periodic tick in favour of a polling thread

2013-09-11 Thread Jonathan Austin
after the guest writes to it, as otherwise flushing only happens with terminal input. Similarly, it is no longer necessary to flush the buffer when we process input. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com Acked-by: Marc Zyngier marc.zyng...@arm.com --- tools/kvm/arm/kvm.c

Re: [PATCH v2 2/3] kvm tools: remove periodic tick in favour of a polling thread

2013-09-05 Thread Jonathan Austin
Hi Sasha, On 04/09/13 19:01, Sasha Levin wrote: On 09/04/2013 01:48 PM, Pekka Enberg wrote: On Wed, Sep 4, 2013 at 8:40 PM, Jonathan Austin jonathan.aus...@arm.com wrote: 'top' works on ARM with virtio console. I've just done some new testing and with the serial console emulation and I see

[PATCH v2 3/3] kvm tools: stop virtio console doing unnecessary input handling

2013-09-04 Thread Jonathan Austin
informing us of data to read). This patch adds synchronisation to the threads so that we don't start polling input files again until we've read from the console. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com Acked-by: Marc Zyngier marc.zyng...@arm.com --- tools/kvm/virtio/console.c | 23

[PATCH v2 0/3] kvm tools: remove periodic tick

2013-09-04 Thread Jonathan Austin
/kvm__arch_read_term/ in patch2's coverletter - make term_poll_thread static - Added Marc's ack Jonathan Austin (3): kvm tools: use #define for maximum number of terminal devices kvm tools: remove periodic tick in favour of a polling thread kvm tools: stop virtio console doing unnecessary input

[PATCH v2 1/3] kvm tools: use #define for maximum number of terminal devices

2013-09-04 Thread Jonathan Austin
Though there may be no near-term plans to change the number of terminal devices in the future, using TERM_MAX_DEVS instead of '4' makes reading some of the loops over terminal devices clearer. This patch makes the this substitution where required. Signed-off-by: Jonathan Austin jonathan.aus

[PATCH v2 2/3] kvm tools: remove periodic tick in favour of a polling thread

2013-09-04 Thread Jonathan Austin
tick in favour of a dedicated thread blocked waiting for input from the console. In order to reflect the new behaviour, the old 'kvm__arch_periodic_tick' function is renamed to 'kvm__arch_read_term'. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com Acked-by: Marc Zyngier marc.zyng...@arm.com

Re: [PATCH v2 2/3] kvm tools: remove periodic tick in favour of a polling thread

2013-09-04 Thread Jonathan Austin
Hi Pekka, On 04/09/13 16:58, Pekka Enberg wrote: Hi Jonathan, On Wed, Sep 4, 2013 at 4:25 PM, Jonathan Austin jonathan.aus...@arm.com wrote: Currently the only use of the periodic timer tick in kvmtool is to handle reading from stdin. Though functional, this periodic tick can

[PATCH 0/3] kvm tools: remove periodic tick

2013-09-03 Thread Jonathan Austin
the method by which the virtio console handles input in order not to - handle input too early - handle input multiple times if the worker thread didn't immediately start work. - Rename the periodic_poll function to reflect the functional change Jonathan Austin (3): kvm tools: use #define

[PATCH 2/3] kvm tools: remove periodic tick in favour of a polling thread

2013-09-03 Thread Jonathan Austin
tick in favour of a dedicated thread blocked waiting for input from the console. In order to reflect the new behaviour, the old 'kvm__arch_periodic_tick' function is renamed to 'kvm__arm_read_term'. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com --- tools/kvm/arm/kvm.c |2

[PATCH 3/3] kvm tools: stop virtio console doing unnecessary input handling

2013-09-03 Thread Jonathan Austin
informing us of data to read). This patch adds synchronisation to the threads so that we don't start polling input files again until we've read from the console. Signed-off-by: Jonathan Austin jonathan.aus...@arm.com --- tools/kvm/virtio/console.c | 23 --- 1 file changed, 20

[PATCH 1/3] kvm tools: use #define for maximum number of terminal devices

2013-09-03 Thread Jonathan Austin
Though there may be no near-term plans to change the number of terminal devices in the future, using TERM_MAX_DEVS instead of '4' makes reading some of the loops over terminal devices clearer. This patch makes this substitution where required. Signed-off-by: Jonathan Austin jonathan.aus