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.


lots of fixes
[palacios.git] / palacios / src / devices / ide.c
index 7b13e5b..246b1d4 100644 (file)
@@ -1494,7 +1494,7 @@ static int connect_fn(struct guest_info * info,
 
        drive->num_sectors = 63;
        drive->num_heads = 16;
-       drive->num_cylinders = ops->get_capacity(private_data)  / (drive->num_sectors * drive->num_heads);
+       drive->num_cylinders = (ops->get_capacity(private_data) / HD_SECTOR_SIZE) / (drive->num_sectors * drive->num_heads);
     } else {
        PrintError("invalid IDE drive type\n");
        return -1;