All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@qumranet.com>
To: Avi Kivity <avi@qumranet.com>,
	Thomas Tuttle <thinkinginbinary@gmail.com>
Cc: Andrew Morton <akpm@osdl.org>,
	Linux kernel mailing list <linux-kernel@vger.kernel.org>,
	Yaniv Kamay <yaniv@qumranet.com>
Subject: Re: 2.6.19-rc6-mm2
Date: Wed, 29 Nov 2006 16:10:16 +0200	[thread overview]
Message-ID: <456D94C8.2000109@qumranet.com> (raw)
In-Reply-To: <456D1807.1000603@qumranet.com>

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

Avi Kivity wrote:
>
>
>>> Oh, and I get a ton of these messages with kvm:
>>>
>>> rtc: lost some interrupts at 1024Hz.
>>>     
>>
>>   
>
> I'll look into these too, though I'm not sure where.
>
>

Please try the attached patch and let us know.


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


[-- Attachment #2: kvm-handle-external-interrupts-explicitly.patch --]
[-- Type: text/x-patch, Size: 1144 bytes --]

Index: linux/drivers/kvm/vmx.c
===================================================================
--- linux/drivers/kvm/vmx.c	(revision 3989)
+++ linux/drivers/kvm/vmx.c	(working copy)
@@ -1163,6 +1163,7 @@
 	vmcs_writel(VM_EXIT_MSR_LOAD_ADDR,
 		    virt_to_phys(vcpu->host_msrs + NR_BAD_MSRS));
 	vmcs_write32_fixedbits(MSR_IA32_VMX_EXIT_CTLS_MSR, VM_EXIT_CONTROLS,
+			       VM_EXIT_ACK_INTR_ON_EXIT |
 		     	       (HOST_IS_64 << 9));  /* 22.2,1, 20.7.1 */
 	vmcs_write32(VM_EXIT_MSR_STORE_COUNT, nr_good_msrs); /* 22.2.2 */
 	vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, nr_good_msrs);  /* 22.2.2 */
@@ -1380,7 +1381,24 @@
 static int handle_external_interrupt(struct kvm_vcpu *vcpu,
 				     struct kvm_run *kvm_run)
 {
+	unsigned long irq;
+
 	++kvm_stat.irq_exits;
+	irq = vmcs_read32(VM_EXIT_INTR_INFO) & 0xff;
+	asm volatile (
+		"lea irq_dispatch(%0,%0,2), %0 \n\t"
+		"call *%0 \n\t"
+		"jmp out \n\t"
+		"irq_dispatch: \n\t"
+		"irq = 0 \n\t"
+		".rept 256 \n\t"
+		"  .byte 0xcd, irq \n\t" /* avoid int $3 -- one byte opcode */
+		"  ret \n\t"
+		"  irq = irq + 1 \n\t"
+		".endr \n\t"
+		"out:"
+		: "+r"(irq) );
+
 	return 1;
 }
 

  reply	other threads:[~2006-11-29 14:10 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-28 10:02 2.6.19-rc6-mm2 Andrew Morton
2006-11-28 10:08 ` 2.6.19-rc6-mm2 Akinobu Mita
2006-11-28 11:35 ` 2.6.19-rc6-mm2 Mariusz Kozlowski
2006-11-28 11:41   ` 2.6.19-rc6-mm2 Mariusz Kozlowski
2006-11-28 22:30   ` 2.6.19-rc6-mm2 Greg KH
2006-11-29  9:06     ` 2.6.19-rc6-mm2 Kay Sievers
2006-11-29 22:54       ` 2.6.19-rc6-mm2 Andy Whitcroft
2006-11-29 23:09         ` 2.6.19-rc6-mm2 Kay Sievers
2006-11-28 21:22 ` 2.6.19-rc6-mm2 Miles Lane
2006-11-28 21:59   ` 2.6.19-rc6-mm2 Vivek Goyal
2006-11-29  0:24 ` 2.6.19-rc6-mm2 Thomas Tuttle
2006-11-29  0:53   ` 2.6.19-rc6-mm2 Andrew Morton
2006-11-29  5:17     ` 2.6.19-rc6-mm2 Avi Kivity
2006-11-29 14:10       ` Avi Kivity [this message]
2006-12-03  8:46       ` 2.6.19-rc6-mm2 Avi Kivity
2006-11-29  0:58   ` 2.6.19-rc6-mm2 Andrew Morton
2006-11-29  1:08     ` 2.6.19-rc6-mm2 Jean Tourrilhes
2006-11-29  0:59 ` 2.6.19-rc6-mm2 Jiri Kosina
2006-12-05  1:33   ` 2.6.19-rc6-mm2 Neil Brown
2006-12-05  4:07     ` 2.6.19-rc6-mm2 Neil Brown
2006-12-05  7:48       ` 2.6.19-rc6-mm2 Jiri Kosina
2006-12-05 22:13         ` 2.6.19-rc6-mm2 Jiri Kosina
2006-12-08  1:31           ` 2.6.19-rc6-mm2 Neil Brown
2006-12-08 12:35             ` 2.6.19-rc6-mm2 Jiri Kosina
2006-11-29 10:04 ` [Cluster-devel] [-mm patch] #if 0 fs/gfs2/acl.c:gfs2_check_acl() Adrian Bunk
2006-11-29 10:04   ` Adrian Bunk
2006-11-29 10:14   ` [Cluster-devel] " Steven Whitehouse
2006-11-29 10:14     ` Steven Whitehouse
2006-11-29 12:42 ` [PATCH] compile fix on x86 without X86_LOCAL_APIC (was 2.6.19-rc6-mm2) Jiri Kosina
2006-11-29 20:57   ` Andrew Morton
2006-11-29 19:54 ` 2.6.19-rc6-mm2: uli526x only works after reload Rafael J. Wysocki
2006-11-29 20:08   ` Rafael J. Wysocki
2006-11-29 21:30     ` Andrew Morton
2006-11-29 21:31       ` Rafael J. Wysocki
2006-11-29 23:08         ` Rafael J. Wysocki
2006-11-29 23:26           ` Andrew Morton
2006-11-30  1:04             ` Rafael J. Wysocki
2006-11-30  2:18               ` Andrew Morton
2006-12-01  1:20                 ` Greg KH
2006-12-02  0:07                   ` Rafael J. Wysocki
2006-11-30 20:21               ` Rafael J. Wysocki
2006-11-30 21:12                 ` Andrew Morton
2006-11-30 21:32                   ` Rafael J. Wysocki
2006-12-01  1:08                     ` Rafael J. Wysocki
2006-12-01  1:27                       ` Greg KH
2006-12-04 23:13                       ` Greg KH
2006-11-30  3:42 ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-11-30  4:10   ` 2.6.19-rc6-mm2 Randy Dunlap
2006-11-30 13:03     ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02  0:33       ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02  0:32         ` 2.6.19-rc6-mm2 Andrew Morton
2006-12-02  3:19           ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02  4:09             ` 2.6.19-rc6-mm2 Akinobu Mita
2006-12-02 22:29               ` 2.6.19-rc6-mm2 Ed Tomlinson
2006-12-02 12:17 ` [-mm patch] arch/frv/kernel/futex.c must #include <linux/uaccess.h> Adrian Bunk
2006-12-04 11:20   ` David Howells
2006-12-02 17:54 ` [-mm patch] fix include/asm-xtensa/unistd.h compilation Adrian Bunk
2006-12-03  7:49 ` [-mm patch] drivers/net/netxen/: possible cleanups Adrian Bunk

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=456D94C8.2000109@qumranet.com \
    --to=avi@qumranet.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thinkinginbinary@gmail.com \
    --cc=yaniv@qumranet.com \
    /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.