1. 03 1月, 2009 1 次提交
  2. 31 12月, 2008 5 次提交
    • J
      KVM: ia64: Fix kvm_arch_vcpu_ioctl_[gs]et_regs() · 042b26ed
      Jes Sorensen 提交于
      Fix kvm_arch_vcpu_ioctl_[gs]et_regs() to do something meaningful on
      ia64. Old versions could never have worked since they required
      pointers to be set in the ioctl payload which were never being set by
      the ioctl handler for get_regs.
      
      In addition reserve extra space for future extensions.
      
      The change of layout of struct kvm_regs doesn't require adding a new
      CAP since get/set regs never worked on ia64 until now.
      
      This version doesn't support copying the KVM kernel stack in/out of
      the kernel. This should be implemented in a seperate ioctl call if
      ever needed.
      Signed-off-by: NJes Sorensen <jes@sgi.com>
      Acked-by : Xiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      042b26ed
    • A
      ca9edaee
    • X
      KVM: ia64: Define printk function for kvm-intel module · 7d637978
      Xiantao Zhang 提交于
      kvm-intel module is relocated to an isolated address space
      with kernel, so it can't call host kernel's printk for debug
      purpose. In the module, we implement the printk to output debug
      info of vmm.
      Signed-off-by: NXiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      7d637978
    • X
      KVM: ia64: Remove lock held by halted vcpu · 853dafb6
      Xiantao Zhang 提交于
      Remove the lock protection for kvm halt logic, otherwise,
      once other vcpus want to acquire the lock, and they have to
      wait all vcpus are waken up from halt.
      Signed-off-by: NXiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      853dafb6
    • X
      KVM: ia64: Re-organize data sturure of guests' data area · a917f7af
      Xiantao Zhang 提交于
      1. Increase the size of data area to 64M
      2. Support more vcpus and memory, 128 vcpus and 256G memory are supported
         for guests.
      3. Add the boundary check for memory and vcpu allocation.
      
      With this patch, kvm guest's data area looks as follow:
        *
        *            +----------------------+  ------- KVM_VM_DATA_SIZE
        *            |     vcpu[n]'s data   |   |     ___________________KVM_STK_OFFSET
        *            |                      |   |    /                   |
        *            |        ..........    |   |   /vcpu's struct&stack |
        *            |        ..........    |   |  /---------------------|---- 0
        *            |     vcpu[5]'s data   |   | /       vpd            |
        *            |     vcpu[4]'s data   |   |/-----------------------|
        *            |     vcpu[3]'s data   |   /         vtlb           |
        *            |     vcpu[2]'s data   |  /|------------------------|
        *            |     vcpu[1]'s data   |/  |         vhpt           |
        *            |     vcpu[0]'s data   |____________________________|
        *            +----------------------+   |
        *            |    memory dirty log  |   |
        *            +----------------------+   |
        *            |    vm's data struct  |   |
        *            +----------------------+   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |
        *            |   vm's p2m table  |      |
        *            |                      |   |
        *            |                      |   |
        *            |                      |   |  |
        * vm's data->|                      |   |  |
        *            +----------------------+ ------- 0
        * To support large memory, needs to increase the size of p2m.
        * To support more vcpus, needs to ensure it has enough space to
        * hold vcpus' data.
        */
      Signed-off-by: NXiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      a917f7af
  3. 12 11月, 2008 1 次提交
  4. 28 10月, 2008 2 次提交
  5. 15 10月, 2008 5 次提交
  6. 20 9月, 2008 1 次提交
  7. 06 9月, 2008 1 次提交
  8. 27 7月, 2008 1 次提交
    • J
      KVM: ia64: Fix irq disabling leak in error handling code · cab7a1ee
      Julia Lawall 提交于
      There is a call to local_irq_restore in the normal exit case, so it would
      seem that there should be one on an error return as well.
      
      The semantic patch that finds this problem is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@
      expression l;
      expression E,E1,E2;
      @@
      
      local_irq_save(l);
      ... when != local_irq_restore(l)
          when != spin_unlock_irqrestore(E,l)
          when any
          when strict
      (
      if (...) { ... when != local_irq_restore(l)
                     when != spin_unlock_irqrestore(E1,l)
      +   local_irq_restore(l);
          return ...;
      }
      |
      if (...)
      +   {local_irq_restore(l);
          return ...;
      +   }
      |
      spin_unlock_irqrestore(E2,l);
      |
      local_irq_restore(l);
      )
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      cab7a1ee
  9. 20 7月, 2008 4 次提交
  10. 18 7月, 2008 1 次提交
    • T
      fix build error of arch/ia64/kvm/* · 2f73ccab
      Takashi Iwai 提交于
      Fix calls of smp_call_function*() in arch/ia64/kvm for recent API
      changes.
      
          CC [M]  arch/ia64/kvm/kvm-ia64.o
        arch/ia64/kvm/kvm-ia64.c: In function 'handle_global_purge':
        arch/ia64/kvm/kvm-ia64.c:398: error: too many arguments to function 'smp_call_function_single'
        arch/ia64/kvm/kvm-ia64.c: In function 'kvm_vcpu_kick':
        arch/ia64/kvm/kvm-ia64.c:1696: error: too many arguments to function 'smp_call_function_single'
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Acked-by Xiantao Zhang <xiantao.zhang@intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2f73ccab
  11. 01 5月, 2008 1 次提交
    • R
      rename div64_64 to div64_u64 · 6f6d6a1a
      Roman Zippel 提交于
      Rename div64_64 to div64_u64 to make it consistent with the other divide
      functions, so it clearly includes the type of the divide.  Move its definition
      to math64.h as currently no architecture overrides the generic implementation.
       They can still override it of course, but the duplicated declarations are
      avoided.
      Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
      Cc: Avi Kivity <avi@qumranet.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Patrick McHardy <kaber@trash.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6f6d6a1a
  12. 27 4月, 2008 4 次提交