1. 25 4月, 2010 1 次提交
  2. 08 12月, 2009 1 次提交
  3. 05 11月, 2009 1 次提交
    • A
      Pass PVR in sregs · ec3c11aa
      Alexander Graf 提交于
      Right now sregs is unused on PPC, so we can use it for initialization
      of the CPU.
      
      KVM on BookE always virtualizes the host CPU. On Book3s we go a step further
      and take the PVR from userspace that tells us what kind of CPU we are supposed
      to virtualize, because we support Book3s_32 and Book3s_64 guests.
      
      In order to get that information, we use the sregs ioctl, because we don't
      want to reset the guest CPU on every normal register set.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ec3c11aa
  4. 24 3月, 2009 1 次提交
    • J
      KVM: New guest debug interface · d0bfb940
      Jan Kiszka 提交于
      This rips out the support for KVM_DEBUG_GUEST and introduces a new IOCTL
      instead: KVM_SET_GUEST_DEBUG. The IOCTL payload consists of a generic
      part, controlling the "main switch" and the single-step feature. The
      arch specific part adds an x86 interface for intercepting both types of
      debug exceptions separately and re-injecting them when the host was not
      interested. Moveover, the foundation for guest debugging via debug
      registers is layed.
      
      To signal breakpoint events properly back to userland, an arch-specific
      data block is now returned along KVM_EXIT_DEBUG. For x86, the arch block
      contains the PC, the debug exception, and relevant debug registers to
      tell debug events properly apart.
      
      The availability of this new interface is signaled by
      KVM_CAP_SET_GUEST_DEBUG. Empty stubs for not yet supported archs are
      provided.
      
      Note that both SVM and VTX are supported, but only the latter was tested
      yet. Based on the experience with all those VTX corner case, I would be
      fairly surprised if SVM will work out of the box.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      d0bfb940
  5. 23 2月, 2009 1 次提交
    • K
      powerpc: Fix warnings from make headers_check · 812d904e
      Kumar Gala 提交于
      include/asm/bootx.h:12: include of <linux/types.h> is preferred over <asm/types.h>
      include/asm/bootx.h:57: found __[us]{8,16,32,64} type without #include <linux/types.h>
      include/asm/elf.h:5: include of <linux/types.h> is preferred over <asm/types.h>
      include/asm/kvm.h:23: include of <linux/types.h> is preferred over <asm/types.h>
      include/asm/kvm.h:26: found __[us]{8,16,32,64} type without #include <linux/types.h>
      include/asm/ps3fb.h:33: found __[us]{8,16,32,64} type without #include <linux/types.h>
      include/asm/spu_info.h:27: found __[us]{8,16,32,64} type without #include <linux/types.h>
      include/asm/swab.h:11: include of <linux/types.h> is preferred over <asm/types.h>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      812d904e
  6. 01 2月, 2009 1 次提交
  7. 04 8月, 2008 1 次提交
  8. 27 4月, 2008 1 次提交
  9. 03 4月, 2008 1 次提交
    • C
      kvm: provide kvm.h for all architecture: fixes headers_install · dd135ebb
      Christian Borntraeger 提交于
      Currently include/linux/kvm.h is not considered by make headers_install,
      because Kbuild cannot handle " unifdef-$(CONFIG_FOO) += foo.h.  This problem
      was introduced by
      
      commit fb56dbb3
      Author: Avi Kivity <avi@qumranet.com>
      Date:   Sun Dec 2 10:50:06 2007 +0200
      
          KVM: Export include/linux/kvm.h only if $ARCH actually supports KVM
      
          Currently, make headers_check barfs due to <asm/kvm.h>, which <linux/kvm.h>
          includes, not existing.  Rather than add a zillion <asm/kvm.h>s, export kvm.
          only if the arch actually supports it.
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      
      which makes this an 2.6.25 regression.
      
      One way of solving the issue is to enhance Kbuild, but Avi and David conviced
      me, that changing headers_install is not the way to go.  This patch changes
      the definition for linux/kvm.h to unifdef-y.
      
      If  unifdef-y is used for linux/kvm.h "make headers_check" will fail on all
      architectures without asm/kvm.h.  Therefore, this patch also provides
      asm/kvm.h on all architectures.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      Acked-by: NAvi Kivity <avi@qumranet.com>
      Cc: Sam Ravnborg <sam@ravnborg.org
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: <linux-arch@vger.kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      dd135ebb