Skip to content

Commit 9e7e6f5

Browse files
author
BrutalLee
committed
First working version
0 parents  commit 9e7e6f5

File tree

2,039 files changed

+989940
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,039 files changed

+989940
-0
lines changed

.cproject

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?fileVersion 4.0.0?>
3+
4+
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
5+
<storageModule moduleId="org.eclipse.cdt.core.settings">
6+
<cconfiguration id="0.281626972">
7+
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.281626972" moduleId="org.eclipse.cdt.core.settings" name="Default">
8+
<externalSettings/>
9+
<extensions>
10+
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
11+
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
12+
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
13+
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
14+
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
15+
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
16+
</extensions>
17+
</storageModule>
18+
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
19+
<configuration buildProperties="" description="" id="0.281626972" name="Default" parent="org.eclipse.cdt.build.core.prefbase.cfg">
20+
<folderInfo id="0.281626972." name="/" resourcePath="">
21+
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1822565711" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
22+
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1822565711.1562227101" name=""/>
23+
<builder id="org.eclipse.cdt.build.core.settings.default.builder.1375368848" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
24+
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1676522448" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
25+
<tool id="org.eclipse.cdt.build.core.settings.holder.482911068" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
26+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.116573155" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
27+
</tool>
28+
<tool id="org.eclipse.cdt.build.core.settings.holder.932794380" name="UPC" superClass="org.eclipse.cdt.build.core.settings.holder">
29+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1032949973" languageId="org.eclipse.cdt.core.parser.upc.upc" languageName="UPC" sourceContentType="org.eclipse.cdt.core.parser.upc.upcSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
30+
</tool>
31+
<tool id="org.eclipse.cdt.build.core.settings.holder.634979643" name="GNU C++" superClass="org.eclipse.cdt.build.core.settings.holder">
32+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.487316999" languageId="org.eclipse.cdt.core.g++" languageName="GNU C++" sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
33+
</tool>
34+
<tool id="org.eclipse.cdt.build.core.settings.holder.2044406650" name="GNU C" superClass="org.eclipse.cdt.build.core.settings.holder">
35+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.791314697" languageId="org.eclipse.cdt.core.gcc" languageName="GNU C" sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
36+
</tool>
37+
<tool id="org.eclipse.cdt.build.core.settings.holder.773507464" name="Fortran" superClass="org.eclipse.cdt.build.core.settings.holder">
38+
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.24719102" languageId="org.eclipse.photran.cdtinterface.org.eclipse.photran.cdtinterface.fortran" languageName="Fortran" sourceContentType="org.eclipse.photran.core.fortranSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
39+
</tool>
40+
</toolChain>
41+
</folderInfo>
42+
</configuration>
43+
</storageModule>
44+
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
45+
</cconfiguration>
46+
</storageModule>
47+
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
48+
<project id="qemu.null.1915776087" name="qemu"/>
49+
</storageModule>
50+
<storageModule moduleId="scannerConfiguration">
51+
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
52+
<scannerConfigBuildInfo instanceId="0.281626972">
53+
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/>
54+
</scannerConfigBuildInfo>
55+
</storageModule>
56+
</cproject>

.gitignore

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
config-devices.*
2+
config-all-devices.*
3+
config-host.*
4+
config-target.*
5+
trace.h
6+
trace.c
7+
trace-dtrace.h
8+
trace-dtrace.dtrace
9+
*-timestamp
10+
*-softmmu
11+
*-darwin-user
12+
*-linux-user
13+
*-bsd-user
14+
libdis*
15+
libhw32
16+
libhw64
17+
libuser
18+
linux-headers/asm
19+
qapi-generated
20+
qapi-types.[ch]
21+
qapi-visit.[ch]
22+
qmp-commands.h
23+
qmp-marshal.c
24+
qemu-doc.html
25+
qemu-tech.html
26+
qemu-doc.info
27+
qemu-tech.info
28+
qemu.1
29+
qemu.pod
30+
qemu-img.1
31+
qemu-img.pod
32+
qemu-img
33+
qemu-nbd
34+
qemu-nbd.8
35+
qemu-nbd.pod
36+
qemu-options.def
37+
qemu-options.texi
38+
qemu-img-cmds.texi
39+
qemu-img-cmds.h
40+
qemu-io
41+
qemu-ga
42+
qemu-bridge-helper
43+
qemu-monitor.texi
44+
QMP/qmp-commands.txt
45+
test-coroutine
46+
test-qmp-input-visitor
47+
test-qmp-output-visitor
48+
test-string-input-visitor
49+
test-string-output-visitor
50+
fsdev/virtfs-proxy-helper.1
51+
fsdev/virtfs-proxy-helper.pod
52+
.gdbinit
53+
*.a
54+
*.aux
55+
*.cp
56+
*.dvi
57+
*.exe
58+
*.fn
59+
*.ky
60+
*.log
61+
*.pdf
62+
*.cps
63+
*.fns
64+
*.kys
65+
*.pg
66+
*.pyc
67+
*.toc
68+
*.tp
69+
*.vr
70+
*.d
71+
*.o
72+
*.swp
73+
*.orig
74+
.pc
75+
patches
76+
pc-bios/bios-pq/status
77+
pc-bios/vgabios-pq/status
78+
pc-bios/optionrom/linuxboot.bin
79+
pc-bios/optionrom/linuxboot.raw
80+
pc-bios/optionrom/linuxboot.img
81+
pc-bios/optionrom/multiboot.bin
82+
pc-bios/optionrom/multiboot.raw
83+
pc-bios/optionrom/multiboot.img
84+
pc-bios/optionrom/kvmvapic.bin
85+
pc-bios/optionrom/kvmvapic.raw
86+
pc-bios/optionrom/kvmvapic.img
87+
.stgit-*
88+
cscope.*
89+
tags
90+
TAGS
91+
*~

.gitmodules

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[submodule "roms/vgabios"]
2+
path = roms/vgabios
3+
url = git://git.qemu.org/vgabios.git/
4+
[submodule "roms/seabios"]
5+
path = roms/seabios
6+
url = git://git.qemu.org/seabios.git/
7+
[submodule "roms/SLOF"]
8+
path = roms/SLOF
9+
url = git://git.qemu.org/SLOF.git
10+
[submodule "roms/ipxe"]
11+
path = roms/ipxe
12+
url = git://git.qemu.org/ipxe.git
13+
[submodule "roms/openbios"]
14+
path = roms/openbios
15+
url = git://git.qemu.org/openbios.git
16+
[submodule "roms/qemu-palcode"]
17+
path = roms/qemu-palcode
18+
url = git://repo.or.cz/qemu-palcode.git
19+
[submodule "roms/sgabios"]
20+
path = roms/sgabios
21+
url = git://git.qemu.org/sgabios.git

.mailmap

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This mailmap just translates the weird addresses from the original import into git
2+
# into proper addresses so that they are counted properly in git shortlog output.
3+
#
4+
Andrzej Zaborowski <[email protected]> balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
5+
Anthony Liguori <[email protected]> aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
6+
Aurelien Jarno <[email protected]> aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
7+
Blue Swirl <[email protected]> blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
8+
Edgar E. Iglesias <[email protected]> edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162>
9+
Fabrice Bellard <[email protected]> bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
10+
Jocelyn Mayer <[email protected]> j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>
11+
Paul Brook <[email protected]> pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
12+
Thiemo Seufer <[email protected]> ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
13+
malc <[email protected]> malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
14+
# There is also a:
15+
# (no author) <(no author)@c046a42c-6fe2-441c-8c8c-71466251a162>
16+
# for the cvs2svn initialization commit e63c3dc74bf.

.project

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>qemu</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
<dictionary>
13+
<key>?name?</key>
14+
<value></value>
15+
</dictionary>
16+
<dictionary>
17+
<key>org.eclipse.cdt.make.core.append_environment</key>
18+
<value>true</value>
19+
</dictionary>
20+
<dictionary>
21+
<key>org.eclipse.cdt.make.core.autoBuildTarget</key>
22+
<value>all</value>
23+
</dictionary>
24+
<dictionary>
25+
<key>org.eclipse.cdt.make.core.buildArguments</key>
26+
<value></value>
27+
</dictionary>
28+
<dictionary>
29+
<key>org.eclipse.cdt.make.core.buildCommand</key>
30+
<value>make</value>
31+
</dictionary>
32+
<dictionary>
33+
<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
34+
<value>clean</value>
35+
</dictionary>
36+
<dictionary>
37+
<key>org.eclipse.cdt.make.core.contents</key>
38+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
39+
</dictionary>
40+
<dictionary>
41+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
42+
<value>false</value>
43+
</dictionary>
44+
<dictionary>
45+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
46+
<value>true</value>
47+
</dictionary>
48+
<dictionary>
49+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
50+
<value>true</value>
51+
</dictionary>
52+
<dictionary>
53+
<key>org.eclipse.cdt.make.core.fullBuildTarget</key>
54+
<value>all</value>
55+
</dictionary>
56+
<dictionary>
57+
<key>org.eclipse.cdt.make.core.stopOnError</key>
58+
<value>true</value>
59+
</dictionary>
60+
<dictionary>
61+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
62+
<value>true</value>
63+
</dictionary>
64+
</arguments>
65+
</buildCommand>
66+
<buildCommand>
67+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
68+
<triggers>full,incremental,</triggers>
69+
<arguments>
70+
</arguments>
71+
</buildCommand>
72+
</buildSpec>
73+
<natures>
74+
<nature>org.eclipse.cdt.core.cnature</nature>
75+
<nature>org.eclipse.cdt.core.ccnature</nature>
76+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
77+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
78+
</natures>
79+
</projectDescription>

CODING_STYLE

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
QEMU Coding Style
2+
=================
3+
4+
Please use the script checkpatch.pl in the scripts directory to check
5+
patches before submitting.
6+
7+
1. Whitespace
8+
9+
Of course, the most important aspect in any coding style is whitespace.
10+
Crusty old coders who have trouble spotting the glasses on their noses
11+
can tell the difference between a tab and eight spaces from a distance
12+
of approximately fifteen parsecs. Many a flamewar have been fought and
13+
lost on this issue.
14+
15+
QEMU indents are four spaces. Tabs are never used, except in Makefiles
16+
where they have been irreversibly coded into the syntax.
17+
Spaces of course are superior to tabs because:
18+
19+
- You have just one way to specify whitespace, not two. Ambiguity breeds
20+
mistakes.
21+
- The confusion surrounding 'use tabs to indent, spaces to justify' is gone.
22+
- Tab indents push your code to the right, making your screen seriously
23+
unbalanced.
24+
- Tabs will be rendered incorrectly on editors who are misconfigured not
25+
to use tab stops of eight positions.
26+
- Tabs are rendered badly in patches, causing off-by-one errors in almost
27+
every line.
28+
- It is the QEMU coding style.
29+
30+
Do not leave whitespace dangling off the ends of lines.
31+
32+
2. Line width
33+
34+
Lines are 80 characters; not longer.
35+
36+
Rationale:
37+
- Some people like to tile their 24" screens with a 6x4 matrix of 80x24
38+
xterms and use vi in all of them. The best way to punish them is to
39+
let them keep doing it.
40+
- Code and especially patches is much more readable if limited to a sane
41+
line length. Eighty is traditional.
42+
- It is the QEMU coding style.
43+
44+
3. Naming
45+
46+
Variables are lower_case_with_underscores; easy to type and read. Structured
47+
type names are in CamelCase; harder to type but standing out. Enum type
48+
names and function type names should also be in CamelCase. Scalar type
49+
names are lower_case_with_underscores_ending_with_a_t, like the POSIX
50+
uint64_t and family. Note that this last convention contradicts POSIX
51+
and is therefore likely to be changed.
52+
53+
When wrapping standard library functions, use the prefix qemu_ to alert
54+
readers that they are seeing a wrapped version; otherwise avoid this prefix.
55+
56+
4. Block structure
57+
58+
Every indented statement is braced; even if the block contains just one
59+
statement. The opening brace is on the line that contains the control
60+
flow statement that introduces the new block; the closing brace is on the
61+
same line as the else keyword, or on a line by itself if there is no else
62+
keyword. Example:
63+
64+
if (a == 5) {
65+
printf("a was 5.\n");
66+
} else if (a == 6) {
67+
printf("a was 6.\n");
68+
} else {
69+
printf("a was something else entirely.\n");
70+
}
71+
72+
Note that 'else if' is considered a single statement; otherwise a long if/
73+
else if/else if/.../else sequence would need an indent for every else
74+
statement.
75+
76+
An exception is the opening brace for a function; for reasons of tradition
77+
and clarity it comes on a line by itself:
78+
79+
void a_function(void)
80+
{
81+
do_something();
82+
}
83+
84+
Rationale: a consistent (except for functions...) bracing style reduces
85+
ambiguity and avoids needless churn when lines are added or removed.
86+
Furthermore, it is the QEMU coding style.

0 commit comments

Comments
 (0)