kernel_optimize_test/arch/ia64/kvm
Xiantao Zhang a917f7af39 KVM: ia64: Re-organize data sturure of guests' data area
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: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
2008-12-31 16:51:49 +02:00
..
asm-offsets.c KVM: ia64: Generate offset values for assembly code use 2008-04-27 12:01:10 +03:00
irq.h KVM: Move irqchip_in_kernel() from ioapic.h to irq.h 2008-10-15 14:25:36 +02:00
Kconfig KVM: Require the PCI subsystem 2008-11-11 20:56:13 +02:00
kvm_fw.c KVM: ia64: Fix halt emulation logic 2008-10-28 14:22:14 +02:00
kvm_minstate.h KVM: ia64: Re-organize data sturure of guests' data area 2008-12-31 16:51:49 +02:00
kvm-ia64.c KVM: ia64: Re-organize data sturure of guests' data area 2008-12-31 16:51:49 +02:00
lapic.h KVM: ia64: Add header files for kvm/ia64 2008-04-27 12:01:03 +03:00
Makefile KVM: ia64: Fix incorrect kbuild CFLAGS override 2008-11-23 14:52:47 +02:00
memcpy.S KVM: ia64: fix GVMM module including position-dependent objects 2008-05-18 14:34:16 +03:00
memset.S KVM: ia64: fix GVMM module including position-dependent objects 2008-05-18 14:34:16 +03:00
misc.h KVM: ia64: Re-organize data sturure of guests' data area 2008-12-31 16:51:49 +02:00
mmio.c KVM: ia64: fix zero extending for mmio ld1/2/4 emulation in KVM 2008-06-06 21:08:25 +03:00
optvfault.S KVM: ia64: Fix: Use correct calling convention for PAL_VPS_RESUME_HANDLER 2008-11-23 15:08:22 +02:00
process.c KVM: ia64: Fix halt emulation logic 2008-10-28 14:22:14 +02:00
trampoline.S KVM: ia64: Add trampoline for guest/host mode switch 2008-04-27 12:01:08 +03:00
vcpu.c KVM: ia64: Re-organize data sturure of guests' data area 2008-12-31 16:51:49 +02:00
vcpu.h KVM: ia64: fix vmm_spin_{un}lock for !CONFIG_SMP 2008-11-11 21:01:30 +02:00
vmm_ivt.S KVM: ia64: Implement a uniform vps interface 2008-10-15 14:25:12 +02:00
vmm.c KVM: ia64: VMM module interfaces 2008-04-27 12:01:04 +03:00
vti.h KVM: ia64: Add header files for kvm/ia64 2008-04-27 12:01:03 +03:00
vtlb.c KVM: ia64: Re-organize data sturure of guests' data area 2008-12-31 16:51:49 +02:00