Re: [PATCH 0/2] Add support for ARMv8 CPUs to kvmtool

2013-01-09 Thread Pekka Enberg
Hi Will,

On Mon, Jan 7, 2013 at 8:43 PM, Will Deacon will.dea...@arm.com wrote:
 Hello again,

 These two patches add support for ARMv8 processors running an AArch64 instance
 of kvm to kvmtool. Both AArch32 and AArch64 guests are supported and, in the
 case of the latter, the guest page size may be either 64k or 4k.

 This depends on the ARM updates series I just posted:

   https://lists.cs.columbia.edu/pipermail/kvmarm/2013-January/004505.html

 Feedback welcome,

So will ARMv7 continue to work after this patch even without the ARM
updates? If so, I'm happy to merge the patch before the updates hit
v3.9.

Pekka
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/2] Add support for ARMv8 CPUs to kvmtool

2013-01-09 Thread Will Deacon
On Wed, Jan 09, 2013 at 11:16:42AM +, Pekka Enberg wrote:
 Hi Will,

Hello,

 On Mon, Jan 7, 2013 at 8:43 PM, Will Deacon will.dea...@arm.com wrote:
  These two patches add support for ARMv8 processors running an AArch64 
  instance
  of kvm to kvmtool. Both AArch32 and AArch64 guests are supported and, in the
  case of the latter, the guest page size may be either 64k or 4k.
 
  This depends on the ARM updates series I just posted:
 
https://lists.cs.columbia.edu/pipermail/kvmarm/2013-January/004505.html
 
  Feedback welcome,
 
 So will ARMv7 continue to work after this patch even without the ARM
 updates? If so, I'm happy to merge the patch before the updates hit
 v3.9.

I think we're getting our wires crossed a bit here, so I'll try to explain
my madness:

- Mainline ARM kernels cannot be booted by kvmtool yet, you
  currently have to use my virt/mach branch from

git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git

  I hope to upstream this for 3.9 (it has gone through the necessary
  review on the ARM kernel list).

- As part of the review mentioned above, some kvmtool changes were
  required to support SMP with the latest virt/mach. You just merged
  these in my ARM updates series.

- The ARMv8 kvmtool code builds on top of the series you just merged
  and won't apply without it. Applying it won't have any adverse
  effects on ARMv7 (AArch32). In fact, the two series sit together
  on my kvmtool/arm branch from

git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git

  but I posted them separately to avoid holding up the ARM updates.

Does that answer you question or have I made things worse?!

Cheers,

Will
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 0/2] Add support for ARMv8 CPUs to kvmtool

2013-01-09 Thread Pekka Enberg
On Wed, Jan 9, 2013 at 1:33 PM, Will Deacon will.dea...@arm.com wrote:
 I think we're getting our wires crossed a bit here, so I'll try to explain
 my madness:

 - Mainline ARM kernels cannot be booted by kvmtool yet, you
   currently have to use my virt/mach branch from

 git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git

   I hope to upstream this for 3.9 (it has gone through the necessary
   review on the ARM kernel list).

 - As part of the review mentioned above, some kvmtool changes were
   required to support SMP with the latest virt/mach. You just merged
   these in my ARM updates series.

 - The ARMv8 kvmtool code builds on top of the series you just merged
   and won't apply without it. Applying it won't have any adverse
   effects on ARMv7 (AArch32). In fact, the two series sit together
   on my kvmtool/arm branch from

 git://git.kernel.org/pub/scm/linux/kernel/git/will/kvmtool.git

   but I posted them separately to avoid holding up the ARM updates.

 Does that answer you question or have I made things worse?!

Yes, it answers my question. I'll go ahead and apply the ARMv8 patches.
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 0/2] Add support for ARMv8 CPUs to kvmtool

2013-01-07 Thread Will Deacon
Hello again,

These two patches add support for ARMv8 processors running an AArch64 instance
of kvm to kvmtool. Both AArch32 and AArch64 guests are supported and, in the
case of the latter, the guest page size may be either 64k or 4k.

This depends on the ARM updates series I just posted:

  https://lists.cs.columbia.edu/pipermail/kvmarm/2013-January/004505.html

Feedback welcome,

Will


Will Deacon (2):
  kvm tools: add support for ARMv8 processors
  kvm tools: arm: align guest memory buffer to maximum page size

 tools/kvm/Makefile |  14 +-
 tools/kvm/arm/aarch32/include/kvm/kvm-arch.h   |  20 +--
 .../kvm/arm/aarch32/include/kvm/kvm-config-arch.h  |   8 ++
 tools/kvm/arm/aarch64/cortex-a57.c |  95 
 tools/kvm/arm/aarch64/include/kvm/barrier.h|   8 ++
 tools/kvm/arm/aarch64/include/kvm/kvm-arch.h   |  17 +++
 .../kvm/arm/aarch64/include/kvm/kvm-config-arch.h  |  10 ++
 tools/kvm/arm/aarch64/include/kvm/kvm-cpu-arch.h   |  13 ++
 tools/kvm/arm/aarch64/kvm-cpu.c| 160 +
 tools/kvm/arm/fdt.c|   2 +-
 tools/kvm/arm/include/arm-common/kvm-arch.h|  32 -
 .../include/{kvm = arm-common}/kvm-config-arch.h  |   8 +-
 tools/kvm/arm/kvm.c|  26 +++-
 13 files changed, 381 insertions(+), 32 deletions(-)
 create mode 100644 tools/kvm/arm/aarch32/include/kvm/kvm-config-arch.h
 create mode 100644 tools/kvm/arm/aarch64/cortex-a57.c
 create mode 100644 tools/kvm/arm/aarch64/include/kvm/barrier.h
 create mode 100644 tools/kvm/arm/aarch64/include/kvm/kvm-arch.h
 create mode 100644 tools/kvm/arm/aarch64/include/kvm/kvm-config-arch.h
 create mode 100644 tools/kvm/arm/aarch64/include/kvm/kvm-cpu-arch.h
 create mode 100644 tools/kvm/arm/aarch64/kvm-cpu.c
 rename tools/kvm/arm/include/{kvm = arm-common}/kvm-config-arch.h (61%)

-- 
1.8.0

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html