-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 93880 b: refs/heads/master c: b693919 h: refs/heads/master v: v3
- Loading branch information
Xiantao Zhang
authored and
Avi Kivity
committed
Apr 27, 2008
1 parent
6e3800a
commit bfa7a09
Showing
5 changed files
with
112 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: ad86b6c36bbb9c1cac610f1b8a310d87eafea778 | ||
refs/heads/master: b693919ca983e9eb989d89dac5493ef3c5e98e77 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# | ||
# KVM configuration | ||
# | ||
config HAVE_KVM | ||
bool | ||
|
||
menuconfig VIRTUALIZATION | ||
bool "Virtualization" | ||
depends on HAVE_KVM || IA64 | ||
default y | ||
---help--- | ||
Say Y here to get to see options for using your Linux host to run other | ||
operating systems inside virtual machines (guests). | ||
This option alone does not add any kernel code. | ||
|
||
If you say N, all options in this submenu will be skipped and disabled. | ||
|
||
if VIRTUALIZATION | ||
|
||
config KVM | ||
tristate "Kernel-based Virtual Machine (KVM) support" | ||
depends on HAVE_KVM && EXPERIMENTAL | ||
select PREEMPT_NOTIFIERS | ||
select ANON_INODES | ||
---help--- | ||
Support hosting fully virtualized guest machines using hardware | ||
virtualization extensions. You will need a fairly recent | ||
processor equipped with virtualization extensions. You will also | ||
need to select one or more of the processor modules below. | ||
|
||
This module provides access to the hardware capabilities through | ||
a character device node named /dev/kvm. | ||
|
||
To compile this as a module, choose M here: the module | ||
will be called kvm. | ||
|
||
If unsure, say N. | ||
|
||
config KVM_INTEL | ||
tristate "KVM for Intel Itanium 2 processors support" | ||
depends on KVM && m | ||
---help--- | ||
Provides support for KVM on Itanium 2 processors equipped with the VT | ||
extensions. | ||
|
||
endif # VIRTUALIZATION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#This Make file is to generate asm-offsets.h and build source. | ||
# | ||
|
||
#Generate asm-offsets.h for vmm module build | ||
offsets-file := asm-offsets.h | ||
|
||
always := $(offsets-file) | ||
targets := $(offsets-file) | ||
targets += arch/ia64/kvm/asm-offsets.s | ||
clean-files := $(addprefix $(objtree)/,$(targets) $(obj)/memcpy.S $(obj)/memset.S) | ||
|
||
# Default sed regexp - multiline due to syntax constraints | ||
define sed-y | ||
"/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" | ||
endef | ||
|
||
quiet_cmd_offsets = GEN $@ | ||
define cmd_offsets | ||
(set -e; \ | ||
echo "#ifndef __ASM_KVM_OFFSETS_H__"; \ | ||
echo "#define __ASM_KVM_OFFSETS_H__"; \ | ||
echo "/*"; \ | ||
echo " * DO NOT MODIFY."; \ | ||
echo " *"; \ | ||
echo " * This file was generated by Makefile"; \ | ||
echo " *"; \ | ||
echo " */"; \ | ||
echo ""; \ | ||
sed -ne $(sed-y) $<; \ | ||
echo ""; \ | ||
echo "#endif" ) > $@ | ||
endef | ||
# We use internal rules to avoid the "is up to date" message from make | ||
arch/ia64/kvm/asm-offsets.s: arch/ia64/kvm/asm-offsets.c | ||
$(call if_changed_dep,cc_s_c) | ||
|
||
$(obj)/$(offsets-file): arch/ia64/kvm/asm-offsets.s | ||
$(call cmd,offsets) | ||
|
||
# | ||
# Makefile for Kernel-based Virtual Machine module | ||
# | ||
|
||
EXTRA_CFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ | ||
|
||
$(addprefix $(objtree)/,$(obj)/memcpy.S $(obj)/memset.S): | ||
$(shell ln -snf ../lib/memcpy.S $(src)/memcpy.S) | ||
$(shell ln -snf ../lib/memset.S $(src)/memset.S) | ||
|
||
common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o) | ||
|
||
kvm-objs := $(common-objs) kvm-ia64.o kvm_fw.o | ||
obj-$(CONFIG_KVM) += kvm.o | ||
|
||
FORCE : $(obj)/$(offsets-file) | ||
EXTRA_CFLAGS_vcpu.o += -mfixed-range=f2-f5,f12-f127 | ||
kvm-intel-objs = vmm.o vmm_ivt.o trampoline.o vcpu.o optvfault.o mmio.o \ | ||
vtlb.o process.o | ||
#Add link memcpy and memset to avoid possible structure assignment error | ||
kvm-intel-objs += memset.o memcpy.o | ||
obj-$(CONFIG_KVM_INTEL) += kvm-intel.o |