kvm: extboot: Fix read drive parameters to solve Grub Error 18
In certain circumstances, the calculated CHS can result in a total number of
sectors that is less than the actual number of sectors. I'm not entirely
sure why this upsets grub, but it seems to be the source of the Grub Error 18
that sometimes occurs when using extboot.
The solution is to implement the read drive parameters function and return the
actual numbers of sectors. This requires changing the QEMU <=> extboot
interface as this was not previously passed to extboot.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>