Root/
1 | Currently, kvm module is in EXPERIMENTAL stage on IA64. This means that |
2 | interfaces are not stable enough to use. So, please don't run critical |
3 | applications in virtual machine. |
4 | We will try our best to improve it in future versions! |
5 | |
6 | Guide: How to boot up guests on kvm/ia64 |
7 | |
8 | This guide is to describe how to enable kvm support for IA-64 systems. |
9 | |
10 | 1. Get the kvm source from git.kernel.org. |
11 | Userspace source: |
12 | git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-userspace.git |
13 | Kernel Source: |
14 | git clone git://git.kernel.org/pub/scm/linux/kernel/git/xiantao/kvm-ia64.git |
15 | |
16 | 2. Compile the source code. |
17 | 2.1 Compile userspace code: |
18 | (1)cd ./kvm-userspace |
19 | (2)./configure |
20 | (3)cd kernel |
21 | (4)make sync LINUX= $kernel_dir (kernel_dir is the directory of kernel source.) |
22 | (5)cd .. |
23 | (6)make qemu |
24 | (7)cd qemu; make install |
25 | |
26 | 2.2 Compile kernel source code: |
27 | (1) cd ./$kernel_dir |
28 | (2) Make menuconfig |
29 | (3) Enter into virtualization option, and choose kvm. |
30 | (4) make |
31 | (5) Once (4) done, make modules_install |
32 | (6) Make initrd, and use new kernel to reboot up host machine. |
33 | (7) Once (6) done, cd $kernel_dir/arch/ia64/kvm |
34 | (8) insmod kvm.ko; insmod kvm-intel.ko |
35 | |
36 | Note: For step 2, please make sure that host page size == TARGET_PAGE_SIZE of qemu, otherwise, may fail. |
37 | |
38 | 3. Get Guest Firmware named as Flash.fd, and put it under right place: |
39 | (1) If you have the guest firmware (binary) released by Intel Corp for Xen, use it directly. |
40 | |
41 | (2) If you have no firmware at hand, Please download its source from |
42 | hg clone http://xenbits.xensource.com/ext/efi-vfirmware.hg |
43 | you can get the firmware's binary in the directory of efi-vfirmware.hg/binaries. |
44 | |
45 | (3) Rename the firmware you owned to Flash.fd, and copy it to /usr/local/share/qemu |
46 | |
47 | 4. Boot up Linux or Windows guests: |
48 | 4.1 Create or install a image for guest boot. If you have xen experience, it should be easy. |
49 | |
50 | 4.2 Boot up guests use the following command. |
51 | /usr/local/bin/qemu-system-ia64 -smp xx -m 512 -hda $your_image |
52 | (xx is the number of virtual processors for the guest, now the maximum value is 4) |
53 | |
54 | 5. Known possible issue on some platforms with old Firmware. |
55 | |
56 | In the event of strange host crash issues, try to solve it through either of the following ways: |
57 | |
58 | (1): Upgrade your Firmware to the latest one. |
59 | |
60 | (2): Applying the below patch to kernel source. |
61 | diff --git a/arch/ia64/kernel/pal.S b/arch/ia64/kernel/pal.S |
62 | index 0b53344..f02b0f7 100644 |
63 | --- a/arch/ia64/kernel/pal.S |
64 | +++ b/arch/ia64/kernel/pal.S |
65 | @@ -84,7 +84,8 @@ GLOBAL_ENTRY(ia64_pal_call_static) |
66 | mov ar.pfs = loc1 |
67 | mov rp = loc0 |
68 | ;; |
69 | - srlz.d // serialize restoration of psr.l |
70 | + srlz.i // serialize restoration of psr.l |
71 | + ;; |
72 | br.ret.sptk.many b0 |
73 | END(ia64_pal_call_static) |
74 | |
75 | 6. Bug report: |
76 | If you found any issues when use kvm/ia64, Please post the bug info to kvm-ia64-devel mailing list. |
77 | https://lists.sourceforge.net/lists/listinfo/kvm-ia64-devel/ |
78 | |
79 | Thanks for your interest! Let's work together, and make kvm/ia64 stronger and stronger! |
80 | |
81 | |
82 | Xiantao Zhang <xiantao.zhang@intel.com> |
83 | 2008.3.10 |
84 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9