public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Pekka Enberg <penberg@kernel.org>
To: kvm@vger.kernel.org
Cc: Pekka Enberg <penberg@kernel.org>, Ingo Molnar <mingo@elte.hu>,
	Cyrill Gorcunov <gorcunov@gmail.com>,
	John Floren <john@jfloren.net>,
	Sasha Levin <levinsasha928@gmail.com>
Subject: [PATCH 2/2] kvm tools, vesa: Fix 'ah' access in int10_vesa()
Date: Fri,  3 Jun 2011 22:37:04 +0300	[thread overview]
Message-ID: <1307129824-8396-2-git-send-email-penberg@kernel.org> (raw)
In-Reply-To: <1307129824-8396-1-git-send-email-penberg@kernel.org>

This patch fixes access to 'ah' in int10_vesa() by masking the high bits.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: John Floren <john@jfloren.net>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
---
 tools/kvm/bios/int10.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/kvm/bios/int10.c b/tools/kvm/bios/int10.c
index f7fecac..498a93a 100644
--- a/tools/kvm/bios/int10.c
+++ b/tools/kvm/bios/int10.c
@@ -131,7 +131,7 @@ static void int10_vesa(struct int10_args *args)
 {
 	u8 al;
 
-	al = args->eax;
+	al = args->eax & 0xff;
 
 	switch (al) {
 	case 0x00:
-- 
1.7.0.4


  reply	other threads:[~2011-06-03 19:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-03 19:37 [PATCH 1/2] kvm tools, vesa: Cleanup code in bios/int10.c Pekka Enberg
2011-06-03 19:37 ` Pekka Enberg [this message]
2011-06-03 19:43   ` [PATCH 2/2] kvm tools, vesa: Fix 'ah' access in int10_vesa() Cyrill Gorcunov
2011-06-06  8:28   ` Avi Kivity
2011-06-06  8:37     ` Cyrill Gorcunov
2011-06-06  9:09       ` Pekka Enberg
2011-06-06  9:11         ` Cyrill Gorcunov
2011-06-03 19:45 ` [PATCH 1/2] kvm tools, vesa: Cleanup code in bios/int10.c Cyrill Gorcunov

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=1307129824-8396-2-git-send-email-penberg@kernel.org \
    --to=penberg@kernel.org \
    --cc=gorcunov@gmail.com \
    --cc=john@jfloren.net \
    --cc=kvm@vger.kernel.org \
    --cc=levinsasha928@gmail.com \
    --cc=mingo@elte.hu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox