Message ID | 20090818010229.GA6083@MAIL.13thfloor.at (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 08/18/2009 04:02 AM, Herbert Poetzl wrote: >> >> Well, does the BIOS set fully nested mode on reset? >> > no idea, but as far as I tested, it doesn't matter > for Linux guests, but makes some other operating > systems - which seem to heavily rely on this default > (e.g. OpenStep, darwin) - work like expected. > > Please send the patches then separately to their lists with appropriate signoffs. I'll give it an autotest run and see. > please CC me as I'm not subscribed to either list > But you have Mail-Followup-To: kvm@vger.kernel.org, qemu-devel@nongnu.org, Avi Kivity<avi@redhat.com> This is incredibly annoying.
--- ./hw/i8259.c.orig 2009-08-12 19:45:45.000000000 +0200 +++ ./hw/i8259.c 2009-08-17 03:48:15.000000000 +0200 @@ -295,7 +295,7 @@ static void pic_reset(void *opaque) s->init_state = 0; s->auto_eoi = 0; s->rotate_on_auto_eoi = 0; - s->special_fully_nested_mode = 0; + s->special_fully_nested_mode = 1; s->init4 = 0; s->single_mode = 0; /* Note: ELCR is not reset */ ; fix i8259 reset behaviour ; kvm (inside the kernel) --- ./arch/x86/kvm/i8259.c.orig 2009-06-11 17:12:23.000000000 +0200 +++ ./arch/x86/kvm/i8259.c 2009-08-18 02:50:00.000000000 +0200 @@ -279,7 +279,7 @@ void kvm_pic_reset(struct kvm_kpic_state s->init_state = 0; s->auto_eoi = 0; s->rotate_on_auto_eoi = 0; - s->special_fully_nested_mode = 0; + s->special_fully_nested_mode = 1; s->init4 = 0; }