Re: [PATCH] kvm-12 userland guest reboot fix

Avi Kivity
2007-01-24T13:47:58Z

Joerg Roedel wrote:
> From: Markus Rechberger <markus.rechberger-5C7GfCeVMHo@public.gmane.org>
> From: Joerg Roedel <joerg.roedel-5C7GfCeVMHo@public.gmane.org>
>
> This patch fixes the initialization of the segment registers which
> solves the triple fault and keyboard controller reset problems in
> kvm/qemu guests as well as the slow grub menu interaction. This works
> for SVM now, it is not tested on kvm/vmx.
>
>

The patch fails to boot on Intel hosts. Most likely the segment changes
are illegal for vm86 mode, which we use on Intel to simulate real mode.

I tried to change flags in cpu_reset() so that type == 3 and dpl == 3,
as required by 22.3.1.2, but it didn't help.

--
error compiling committee.c: too many arguments to function