qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] target-arm: kvm: use KVM_SET_SREGS to set targe


From: Rusty Russell
Subject: Re: [Qemu-devel] [PATCH] target-arm: kvm: use KVM_SET_SREGS to set target to Cortex A15
Date: Wed, 25 Jul 2012 15:47:33 +0930
User-agent: Notmuch/0.12 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu)

On Tue, 17 Jul 2012 19:19:16 +0100, Peter Maydell <address@hidden> wrote:
> So I can't see anything better than "complain and return failure
> from kvm_arch_init_vcpu() if the guest CPU isn't going to work".

OK, here's what I have for kvm.  It matches the kernel patches I just
sent out, with the updated API.

I rewrote all the backwards compat stuff to wrap it in #ifdef
HORRIBLE_COMPAT_HACK, but something subtle broke and it no longer set
cpsr correctly for older kernels.  After wasting an afternoon on it, I
gave up and threw out the backwards compat code in digust.

Nor does it bisect, since we update the headers as you asked, then
update the code.

The following changes since commit 94d477a4017d45222a4a0227857ad9fc3f81fb2d:

  Merge upstream master into qemu-linaro (2012-07-16 15:04:16 +0100)

are available in the git repository at:


  git://git.linaro.org/people/rusty/qemu-linaro.git msr-ops

for you to fetch changes up to caf1e8a68ceb6ffd485e96d2f05102b095dd69bd:

  target-arm: kvm: use KVM_GET_MSRS/KVM_SET_MSRS for CP15 registers. 
(2012-07-25 15:37:44 +0930)

----------------------------------------------------------------
Rusty Russell (3):
      Local update of linux-headers/asm-arm/kvm.h
      target-arm: kvm: use KVM_ARM_VCPU_INIT to set target to Cortex A15
      target-arm: kvm: use KVM_GET_MSRS/KVM_SET_MSRS for CP15 registers.

 linux-headers/asm-arm/kvm.h |   50 +++++++++++++++++++++++++++++-------
 linux-headers/linux/kvm.h   |    3 +++
 target-arm/kvm.c            |   60 +++++++++++++++++++++++++++++++++----------
 3 files changed, 91 insertions(+), 22 deletions(-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]