qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-i386: svm: Fix MSRPM check
@ 2010-08-15 13:58 Adam Lackorzynski
  2010-08-22 21:29 ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Lackorzynski @ 2010-08-15 13:58 UTC (permalink / raw)
  To: qemu-devel


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>
---
 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;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] target-i386: svm: Fix MSRPM check
  2010-08-15 13:58 [Qemu-devel] [PATCH] target-i386: svm: Fix MSRPM check Adam Lackorzynski
@ 2010-08-22 21:29 ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2010-08-22 21:29 UTC (permalink / raw)
  To: Adam Lackorzynski; +Cc: qemu-devel

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;
>    

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-22 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-15 13:58 [Qemu-devel] [PATCH] target-i386: svm: Fix MSRPM check Adam Lackorzynski
2010-08-22 21:29 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).