From: Jindrich Makovicka <makovick-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: kvm-37 problem w/ 64-bit division in lapic.c
Date: Sun, 9 Sep 2007 17:36:40 +0200 [thread overview]
Message-ID: <20070909173640.6747418d@holly> (raw)
In-Reply-To: <46E3D369.8000401-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 927 bytes --]
On Sun, 09 Sep 2007 14:05:13 +0300
Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org> wrote:
> This release merges the pic/lapic/ioapic into mainline. While some
> known issues exist, we're now at the point where it's better to get
> some wider exposure rather than keep it alone on a branch.
>
> Some regressions are expected; please report them as they appear. A
> new qmeu option -no-kvm-irqchip is available to disable the new
> functionality.
(message seems to get stuck at gmane, sorry if it appears twice
eventually)
My experience so far:
On 32-bit Intel host, lapic fails to link due to missing 64bit
division. I tried the attached patch to fix the build, but Windows
XP froze before showing the booting screen. With -no-kvm-irqchip
they work, except the IE plugins like Flash & Java, which are broken
since kvm-29. With -no-kvm, qemu-system-x86_64 segfaults immediately.
Regards,
--
Jindrich Makovicka
[-- Attachment #2: lapic.c.diff --]
[-- Type: text/x-patch, Size: 589 bytes --]
--- lapic.c~ 2007-09-09 12:51:09.000000000 +0200
+++ lapic.c 2007-09-09 16:12:38.000000000 +0200
@@ -31,6 +31,7 @@
#include <asm/current.h>
#include <asm/apicdef.h>
#include <asm/atomic.h>
+#include <asm/div64.h>
#include "irq.h"
#define PRId64 "d"
@@ -511,8 +512,8 @@
} else
passed = ktime_sub(now, apic->timer.last_update);
- counter_passed = ktime_to_ns(passed) /
- (APIC_BUS_CYCLE_NS * apic->timer.divide_count);
+ counter_passed = div64_64(ktime_to_ns(passed),
+ (APIC_BUS_CYCLE_NS * apic->timer.divide_count));
tmcct -= counter_passed;
if (tmcct <= 0) {
[-- Attachment #3: Type: text/plain, Size: 228 bytes --]
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
[-- Attachment #4: Type: text/plain, Size: 186 bytes --]
_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel
next prev parent reply other threads:[~2007-09-09 15:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-09 11:05 [ANNOUNCE] kvm-37 release Avi Kivity
2007-09-09 14:26 ` Jindrich Makovicka
[not found] ` <46E3D369.8000401-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-09 15:36 ` Jindrich Makovicka [this message]
2007-09-09 15:45 ` kvm-37 problem w/ 64-bit division in lapic.c Avi Kivity
2007-09-10 9:20 ` Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A02108583-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-10 9:49 ` Jindrich Makovicka
[not found] ` <5f0e26840709100249y239692c2gcdd3938fc6b23b6c-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-09-10 16:26 ` Jindrich Makovicka
2007-09-12 8:05 ` Avi Kivity
[not found] ` <46E79DCA.70101-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
2007-09-12 9:43 ` Dong, Eddie
[not found] ` <10EA09EFD8728347A513008B6B0DA77A0210915A-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-09-12 9:56 ` Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070909173640.6747418d@holly \
--to=makovick-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.