Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added default PC configuration file
Jack Lange [Tue, 1 Dec 2009 00:53:22 +0000 (18:53 -0600)]
utils/guest_creator/default.xml [new file with mode: 0644]
utils/guest_creator/main.c
utils/guest_creator/test.xml [deleted file]

diff --git a/utils/guest_creator/default.xml b/utils/guest_creator/default.xml
new file mode 100644 (file)
index 0000000..bbcdc85
--- /dev/null
@@ -0,0 +1,205 @@
+
+<vm class="PC">
+       <memory>1024</memory>
+       <telemetry>enable</telemetry>
+       <paging>nested</paging>
+       <schedule_hz>100</schedule_hz>
+
+       <memmap>
+               <region>
+                       <start>0xa0000</start>
+                       <end>0xc0000</end>
+                       <host_addr>0xa0000</host_addr>
+               </region>
+       </memmap>
+
+       <files>
+               <file id="boot-cd" filename="/home/jarusl/image.iso" />
+               <!--<file id="harddisk" filename="firefox.img" />-->
+       </files>
+
+       <devices>
+               <device id="8259A" name="PIC"/>
+               <device id="KEYBOARD" name="keyboard"/>
+               <device id="8254_PIT" name="PIC" />
+               <device id="BOCHS_DEBUG" name="bochs debug"/>
+               <device id="OS_DEBUG" name="os debug" />
+               <device id="LAPIC" name="apic"/>
+               <device id="IOAPIC" name="ioapic">
+                       <irq_bus>apic</irq_bus>
+               </device>
+
+<!--
+               <device id="CGA_VIDEO" name="cga" passthrough="enable" />
+               <device id="TELNET_CONSOLE" name="telnet console">
+                       <frontend tag="CGA_VIDEO" />
+                       <port>19997</port>
+               </device>
+-->
+               <device id="PCI" name="pci0" />
+
+               <device id="i440FX" name="northbridge">
+                       <bus>pci0</bus>
+               </device>
+
+               <device id="PIIX3" name="southbridge">
+                       <bus>pci0</bus>
+               </device>
+
+               <device id="LNX_VIRTIO_SYM" name="sym_pci">
+                       <bus>pci0</bus>
+               </device>
+
+               <device id="LNX_VIRTIO_BLK" name="blk_virtio">
+                       <bus>pci0</bus>
+               </device>
+
+               <device id="LNX_VIRTIO_BALLOON" name="balloon">
+                       <bus>pci0</bus>
+               </device>
+
+               <device id="SYM_SWAP" name="sym swap">
+                       <frontend tag="blk_virtio" />
+                       <size>150</size>
+               </device>
+
+               <device id="IDE" name="ide">
+                       <bus>pci0</bus>
+                       <controller>southbridge</controller>
+               </device>
+
+               <device id="PCI_PASSTHROUGH" name="e1000">
+                       <bus>pci0</bus>
+                       <vendor_id>0x8086</vendor_id>
+                       <device_id>0x100e</device_id>
+               </device>
+
+               <device id="PCI_PASSTHROUGH" name="e1000-hw">
+                       <bus>pci0</bus>
+                       <vendor_id>0x8086</vendor_id>
+                       <device_id>0x107c</device_id>
+                       <irq>59</irq>
+               </device>
+<!--
+               <device id="RAMDISK" name="HD0">
+                       <file>harddisk</file>
+                       <frontend tag="blk_virtio" />
+               </device>
+-->
+
+               <device id="RAMDISK" name="CD0">
+                       <file>boot-cd</file>
+                       <frontend tag="ide">
+                         <model>V3Vee CDROM</model>
+                         <type>CDROM</type>
+                          <bus_num>0</bus_num>
+                          <drive_num>0</drive_num>
+                       </frontend>
+               </device>
+
+               <device id="NVRAM" name="nvram">
+                       <storage>ide</storage>
+               </device>
+
+               <device id="GENERIC" name="generic">
+                       <ports>
+                               <start>0x00</start>
+                               <end>0x07</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <start>0xc0</start>
+                               <end>0xc7</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- DMA 1 page registers -->
+                               <start>0x81</start>
+                               <end>0x87</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- DMA 2 page registers -->
+                               <start>0x88</start>
+                               <end>0x8f</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- DMA 1 Misc Registers -->
+                               <start>0x08</start>
+                               <end>0x0f</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- DMA 2 Misc Registers -->
+                               <start>0xd0</start>
+                               <end>0xde</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- Serial COM 1 -->
+                               <start>0x3f8</start>
+                               <end>0x3ff</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- Serial COM 2 -->
+                               <start>0x2f8</start>
+                               <end>0x2ff</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- Serial COM 3 -->
+                               <start>0x3e8</start>
+                               <end>0x3ef</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- Serial COM 4 -->
+                               <start>0x2e8</start>
+                               <end>0x2ef</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- Parallel Port -->
+                               <start>0x378</start>
+                               <end>0x37f</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- Graphics Card operations -->
+                               <start>0x3b0</start>
+                               <end>0x3bb</end>
+                               <op>PRINT_AND_PASSTHROUGH</op>
+                       </ports>
+                       <ports>
+                               <!-- Graphics Card operations -->
+                               <start>0x3c0</start>
+                               <end>0x3df</end>
+                               <op>PRINT_AND_PASSTHROUGH</op>
+                       </ports>
+                       <ports>
+                               <!-- ISA PNP -->
+                               <start>0x274</start>
+                               <end>0x277</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- ISA PNP -->
+                               <start>0x279</start>
+                               <end>0x279</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+                       <ports>
+                               <!-- ISA PNP -->
+                               <start>0xa79</start>
+                               <end>0xa79</end>
+                               <op>PRINT_AND_IGNORE</op>
+                       </ports>
+               </device>
+       </devices>
+
+
+</vm>
+
+
index 2316ea9..782e63d 100644 (file)
@@ -67,12 +67,15 @@ int main(int argc, char ** argv) {
     }
 
 
+
+
     // parse input
     if (parse_config_input(cfg_input) == -1) {
        printf("Error parsing configuration input\n");
        return 1;
     }
 
+    printf("xml : %s\n", ezxml_toxml(cfg_input));
 
 
 
diff --git a/utils/guest_creator/test.xml b/utils/guest_creator/test.xml
deleted file mode 100644 (file)
index 79169c0..0000000
+++ /dev/null
@@ -1,118 +0,0 @@
-
-<vm class="PC">
-       <memory>1024</memory>
-       <telemetry>enable</telemetry>
-       <paging>nested</paging>
-       <schedule_hz>100</schedule_hz>
-
-       <memmap>
-               <region>
-                       <start>0xa0000</start>
-                       <end>0xc0000</end>
-                       <host_addr>0xa0000</host_addr>
-               </region>
-       </memmap>
-
-       <files>
-               <file id="boot-cd" filename="/home/jarusl/image.iso" />
-               <!--<file id="harddisk" filename="firefox.img" />-->
-       </files>
-
-       <devices>
-               <device id="8259A" />
-               <device id="KEYBOARD" />
-               <device id="8254_PIT" />
-               <device id="BOCHS_DEBUG" />
-               <device id="OS_DEBUG" />
-               <device id="LAPIC" />
-               <device id="IOAPIC">
-                       <irq_bus>LAPIC</irq_bus>
-               </device>
-
-               <device id="CGA_VIDEO" />
-               <device id="TELNET_CONSOLE">
-                       <frontend id="CGA_VIDEO" />
-                       <port>19997</port>
-               </device>
-
-               <device id="PCI" />
-
-               <device id="i440FX">
-                       <bus>PCI</bus>
-               </device>
-
-               <device id="PIIX3">
-                       <bus>PCI</bus>
-               </device>
-
-               <device id="LNX_VIRTIO_SYM">
-                       <bus>PCI</bus>
-               </device>
-
-               <device id="LNX_VIRTIO_BLK">
-                       <bus>PCI</bus>
-               </device>
-
-               <device id="LNX_VIRTIO_BALLOON">
-                       <bus>PCI</bus>
-               </device>
-
-               <device id="SYM_SWAP">
-                       <frontend id="LNX_VIRTIO_BLK" />
-               </device>
-
-               <device id="IDE">
-                       <bus>PCI</bus>
-                       <controller>PIIX3</controller>
-               </device>
-
-               <device id="PCI_PASSTHROUGH">
-                       <bus>PCI</bus>
-                       <name>E1000</name>
-                       <vendor_id>0x8086</vendor>
-                       <device_id>0x100e</device_id>
-               </device>
-
-               <device id="PCI_PASSTHROUGH">
-                       <bus>PCI</bus>
-                       <name>E1000</name>
-                       <vendor_id>0x8086</vendor>
-                       <device_id>0x107c</device_id>
-               </device>
-
-               <device id="RAMDISK">
-                       <file>harddisk</file>
-                       <frontend id="LNX_VIRTIO_BLK" />
-               </device>
-
-
-               <device id="RAMDISK">
-                       <file>boot-cd</file>
-                       <frontend id="IDE">
-                          <bus>0</bus>
-                          <channel>0</channel>
-                       </frontend>
-               </device>
-
-               <device id="NVRAM">
-                       <storage>IDE</storage>
-               </device>
-
-               <device id="GENERIC">
-                       <ports>
-                               <op>PRINT_AND_IGNORE</op>
-                               <start>0x00</start>
-                               <end>0x07</end>
-                       </ports>
-                       <ports>
-                               <op>PRINT_AND_IGNORE</op>
-                               <start>0xc0</start>
-                               </end>0xc7</end>
-                       </ports>
-               </device>
-       </devices>
-
-
-</vm>
-
-