All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
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	[thread overview]
Message-ID: <1252830613-2185-3-git-send-email-gleb@redhat.com> (raw)
In-Reply-To: <1252830613-2185-1-git-send-email-gleb@redhat.com>

This one was sent to qemu upstream. Include it here because next patch
needs it.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
---
 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;
 }
-- 
1.6.3.3


  parent reply	other threads:[~2009-09-13  8:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-13  8:30 [PATCH 1/4] Remove unused function Gleb Natapov
2009-09-13  8:30 ` [PATCH 2/4] Use kvm_cpu_synchronize_state() instead of kvm_arch_(save|load)_regs() Gleb Natapov
2009-09-13  8:30 ` Gleb Natapov [this message]
2009-09-13  8:30 ` [PATCH 4/4] Make cpu runnable after sipi Gleb Natapov
2009-09-13 12:05   ` Avi Kivity
2009-09-13 12:55     ` Gleb Natapov
2009-09-18 16:18       ` Marcelo Tosatti
2009-09-18 16:22         ` Gleb Natapov
2009-09-18 16:23           ` Marcelo Tosatti

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=1252830613-2185-3-git-send-email-gleb@redhat.com \
    --to=gleb@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.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.