[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kvm with hurd-k16.img
From: |
Michael Banck |
Subject: |
Re: kvm with hurd-k16.img |
Date: |
Mon, 3 Nov 2008 22:51:23 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
reassign 498940 linux-2.6
retitle 498940 [patch] linux-2.6.26 KVM fails to boot Mach
severity 498940 important
tags 498940 +patch
tags 498940 +fixed-upstream
thanks
On Mon, Nov 03, 2008 at 11:28:53AM +0100, Samuel Thibault wrote:
> Michael Banck, le Mon 03 Nov 2008 11:09:08 +0100, a écrit :
> > Is it trivial to apply the fix which went into 2.6.27 to 2.6.26?
>
> Yes:
>
> commit f697554515b06e8d7264f316b25e6da943407142
> Author: Aurelien Jarno <aurelien@aurel32.net>
> Date: Fri May 2 17:02:23 2008 +0200
>
> KVM: PIT: support mode 3
>
> The in-kernel PIT emulation ignores pending timers if operating
> under mode 3, which for example Hurd uses.
>
> This mode should output a square wave, high for (N+1)/2 counts and low
> for (N-1)/2 counts. As we only care about the resulting interrupts, the
> period is N, and mode 3 is the same as mode 2 with regard to
> interrupts.
>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
> Signed-off-by: Avi Kivity <avi@qumranet.com>
>
> diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c
> index 735ec9a..60074dc 100644
> --- a/arch/x86/kvm/i8254.c
> +++ b/arch/x86/kvm/i8254.c
> @@ -308,6 +308,7 @@ static void pit_load_count(struct kvm *kvm, int channel,
> u32
> create_pit_timer(&ps->pit_timer, val, 0);
> break;
> case 2:
> + case 3:
> create_pit_timer(&ps->pit_timer, val, 1);
> break;
> default:
>
OK, so reassigning to linux-2.6. Linux kernel maintainers, please apply
this patch for lenny if another upload is done.
thanks,
Michael