direct-io.hg

view docs/Makefile @ 11750:d845c9522d9e

[HVM][SVM] Check if SVM is disabled by the BIOS before enabling it.

Newer BIOS implementations will be able to disable the SVM feature,
although an additional test of an MSR (VMCR 0xC0010114 bit 4) is
necessary (set equals disabled). Bit 4 of MSR 0xc0010114 returns 0
(SVM enabled) on machines with older BIOS' without the SVM disable
feature support.

Signed-off-by: Wei Huang <wei.huang2@amd.com>=20
Signed-off-by: Tom Woller <thomas.woller@amd.com>=20
author kfraser@localhost.localdomain
date Thu Oct 12 16:12:10 2006 +0100 (2006-10-12)
parents 7154e0416313
children edf0e488ea2a
line source
1 #!/usr/bin/make -f
3 VERSION = xen-unstable
4 INSTALL = install
5 INSTALL_DIR = $(INSTALL) -d -m0755
7 PS2PDF := ps2pdf
8 DVIPS := dvips
9 LATEX := latex
10 FIG2DEV := fig2dev
11 LATEX2HTML := latex2html
12 DOXYGEN := doxygen
13 POD2MAN := pod2man
15 pkgdocdir := /usr/share/doc/xen
16 mandir := /usr/share/man
18 DOC_MAN5SRC := $(wildcard man/*.pod.5)
19 DOC_MAN1SRC := $(wildcard man/*.pod.1)
20 DOC_MAN1 := $(patsubst man/%.pod.1,man1/%.1,$(DOC_MAN1SRC))
21 DOC_MAN5 := $(patsubst man/%.pod.5,man5/%.5,$(DOC_MAN5SRC))
22 DOC_TEX := src/user.tex src/interface.tex
23 DOC_PS := $(patsubst src/%.tex,ps/%.ps,$(DOC_TEX))
24 DOC_PDF := $(patsubst src/%.tex,pdf/%.pdf,$(DOC_TEX))
25 DOC_HTML := $(patsubst src/%.tex,html/%/index.html,$(DOC_TEX))
27 GFX = $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
29 .PHONY: all
30 all: build
32 .PHONY: build
33 build: ps pdf html man-pages
34 rm -f *.aux *.dvi *.bbl *.blg *.glo *.idx *.ilg *.log *.ind *.toc
36 .PHONY: dev-docs
37 dev-docs: python-dev-docs
39 .PHONY: ps
40 ps: $(DOC_PS)
42 .PHONY: pdf
43 pdf: $(DOC_PDF)
45 .PHONY: html
46 html:
47 @if which $(LATEX2HTML) 1>/dev/null 2>/dev/null; then \
48 $(MAKE) $(DOC_HTML); fi
50 .PHONY: python-dev-docs
51 python-dev-docs:
52 @mkdir -v -p api/tools/python
53 @if which $(DOXYGEN) 1>/dev/null 2>/dev/null; then \
54 echo "Running doxygen to generate Python tools APIs ... "; \
55 $(DOXYGEN) Doxyfile; \
56 $(MAKE) -C api/tools/python/latex ; else \
57 echo "Doxygen not installed; skipping python-dev-docs."; fi
59 .PHONY: man-pages
60 man-pages:
61 @if which $(POD2MAN) 1>/dev/null 2>/dev/null; then \
62 $(MAKE) $(DOC_MAN1) $(DOC_MAN5); fi
64 man1/%.1: man/%.pod.1 Makefile
65 $(INSTALL_DIR) $(@D)
66 $(POD2MAN) --release=$(VERSION) --name=`echo $@ | sed 's/^man1.//'| \
67 sed 's/.1//'` -s 1 -c "Xen" $< $@
69 man5/%.5: man/%.pod.5 Makefile
70 $(INSTALL_DIR) $(@D)
71 $(POD2MAN) --release=$(VERSION) --name=`echo $@ | sed 's/^man5.//'| \
72 sed 's/.5//'` -s 5 -c "Xen" $< $@
74 .PHONY: clean
75 clean:
76 rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~
77 rm -rf *.ilg *.log *.ind *.toc *.bak core
78 rm -rf $(GFX) ps pdf html
79 rm -rf api
80 rm -rf man5
81 rm -rf man1
83 .PHONY: distclean
84 distclean: clean
86 .PHONY: install
87 install: all
88 rm -rf $(DESTDIR)$(pkgdocdir)
89 $(INSTALL_DIR) $(DESTDIR)$(pkgdocdir)
90 cp -dR ps $(DESTDIR)$(pkgdocdir)
91 cp -dR pdf $(DESTDIR)$(pkgdocdir)
92 $(INSTALL_DIR) $(DESTDIR)$(mandir)
93 cp -dR man1 $(DESTDIR)$(mandir)
94 cp -dR man5 $(DESTDIR)$(mandir)
95 [ ! -d html ] || cp -dR html $(DESTDIR)$(pkgdocdir)
97 pdf/%.pdf: ps/%.ps
98 $(INSTALL_DIR) $(@D)
99 $(PS2PDF) $< $@.new
100 mv $@.new $@
102 ps/%.ps: %.dvi
103 $(INSTALL_DIR) $(@D)
104 $(DVIPS) -Ppdf -G0 -o $@.new $<
105 mv $@.new $@
107 %.dvi: src/%.tex $(GFX)
108 $(LATEX) $< >/dev/null
109 if [ -e $*.toc ] ; then $(LATEX) $< >/dev/null ; fi
111 %.eps: %.fig
112 $(FIG2DEV) -L eps $< $@
114 html/%/index.html: src/%.tex
115 $(INSTALL_DIR) $(@D)
116 $(LATEX2HTML) -split 0 -show_section_numbers -toc_depth 3 -nonavigation \
117 -numbered_footnotes -local_icons -noinfo -math -dir $(@D) \
118 $< 1>/dev/null 2>/dev/null