All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Adam Lackorzynski <adam@os.inf.tu-dresden.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target-i386: svm: Fix MSRPM check
Date: Sun, 22 Aug 2010 16:29:56 -0500	[thread overview]
Message-ID: <4C7196D4.4030600@codemonkey.ws> (raw)
In-Reply-To: <20100815135832.GA5355@os.inf.tu-dresden.de>

On 08/15/2010 08:58 AM, Adam Lackorzynski wrote:
> Correct the calculation of the offset in the msrpm
> for the MSR range 0 - 0x1fff.
>
> Signed-off-by: Adam Lackorzynski<adam@os.inf.tu-dresden.de>
>    

Applied.  Thanks.

Regards,

Anthony Liguori
> ---
>   target-i386/op_helper.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/target-i386/op_helper.c b/target-i386/op_helper.c
> index c50e818..ec6b3e9 100644
> --- a/target-i386/op_helper.c
> +++ b/target-i386/op_helper.c
> @@ -5237,7 +5237,7 @@ void helper_svm_check_intercept_param(uint32_t type, uint64_t param)
>               switch((uint32_t)ECX) {
>               case 0 ... 0x1fff:
>                   t0 = (ECX * 2) % 8;
> -                t1 = ECX / 8;
> +                t1 = (ECX * 2) / 8;
>                   break;
>               case 0xc0000000 ... 0xc0001fff:
>                   t0 = (8192 + ECX - 0xc0000000) * 2;
>    

      reply	other threads:[~2010-08-22 21:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15 13:58 [Qemu-devel] [PATCH] target-i386: svm: Fix MSRPM check Adam Lackorzynski
2010-08-22 21:29 ` Anthony Liguori [this message]

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=4C7196D4.4030600@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=adam@os.inf.tu-dresden.de \
    --cc=qemu-devel@nongnu.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.