From patchwork Sun Sep 13 08:30:12 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gleb Natapov X-Patchwork-Id: 47137 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8D8UVZN018132 for ; Sun, 13 Sep 2009 08:30:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751770AbZIMIaZ (ORCPT ); Sun, 13 Sep 2009 04:30:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751186AbZIMIaY (ORCPT ); Sun, 13 Sep 2009 04:30:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29744 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbZIMIaM (ORCPT ); Sun, 13 Sep 2009 04:30:12 -0400 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8UFaP015177 for ; Sun, 13 Sep 2009 04:30:15 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8D8UE7C031741; Sun, 13 Sep 2009 04:30:15 -0400 Received: by dhcp-1-237.tlv.redhat.com (Postfix, from userid 13519) id 2148818D468; Sun, 13 Sep 2009 11:30:13 +0300 (IDT) From: Gleb Natapov To: avi@redhat.com Cc: kvm@vger.kernel.org Subject: [PATCH 3/4] set correct CS seg limit and flags on sipi Date: Sun, 13 Sep 2009 11:30:12 +0300 Message-Id: <1252830613-2185-3-git-send-email-gleb@redhat.com> In-Reply-To: <1252830613-2185-1-git-send-email-gleb@redhat.com> References: <1252830613-2185-1-git-send-email-gleb@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.18 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This one was sent to qemu upstream. Include it here because next patch needs it. Signed-off-by: Gleb Natapov --- hw/apic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index 68e5de3..11d4759 100644 --- a/hw/apic.c +++ b/hw/apic.c @@ -531,7 +531,7 @@ void apic_sipi(CPUState *env) env->eip = 0; cpu_x86_load_seg_cache(env, R_CS, s->sipi_vector << 8, s->sipi_vector << 12, - 0xffff, 0); + env->segs[R_CS].limit, env->segs[R_CS].flags); env->halted = 0; s->wait_for_sipi = 0; }