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.


Fixed v3_create_ide when NULL southbridge passed in (i.e. when .config_pci = 0)
Patrick Bridges [Wed, 20 May 2009 21:00:03 +0000 (15:00 -0600)]
palacios/src/devices/ide.c

index 361bed0..2b04002 100644 (file)
@@ -1526,7 +1526,10 @@ struct vm_device *  v3_create_ide(struct vm_device * pci_bus, struct vm_device *
     struct vm_device * device = v3_create_device("IDE", &dev_ops, ide);
 
     ide->pci_bus = pci_bus;
-    ide->southbridge = (struct v3_southbridge *)(southbridge_dev->private_data);
+    if (ide->southbridge)
+        ide->southbridge = (struct v3_southbridge *)(southbridge_dev->private_data);
+    else
+       ide->southbridge = NULL;
 
     PrintDebug("IDE: Creating IDE bus x 2\n");