qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Lara Lazier <laramglazier@gmail.com>
To: qemu-devel@nongnu.org
Cc: Lara Lazier <laramglazier@gmail.com>
Subject: [PATCH 0/4] target/i386: Continuing fixing kvm-unit-tests for svm
Date: Mon,  5 Jul 2021 10:17:58 +0200	[thread overview]
Message-ID: <20210705081802.18960-1-laramglazier@gmail.com> (raw)

Following the APM2 I added some consistency checks to
resolve the following tests in kvm-unit-tests for svm:

 * EFER.SVME: 1500
 * EFER.SVME: 500
 * Test EFER 9:8: 1700
 * Test EFER 63:16: 11500
 * Test EFER 63:16: 101500
 * Test EFER 63:16: 1001500
 * Test EFER 63:16: 10001500
 * Test EFER 63:16: 100001500
 * Test EFER 63:16: 1000001500
 * Test EFER 63:16: 10000001500
 * Test EFER 63:16: 100000001500
 * Test EFER 63:16: 1000000001500
 * Test EFER 63:16: 10000000001500
 * Test EFER 63:16: 100000000001500
 * Test EFER 63:16: 1000000000001500
 * EFER.LME=1, CR0.PG=1 and CR4.PAE=0
 * EFER.LME=1, CR0.PG=1 and CR0.PE=0
 * EFER.LME=1, CR0.PG=1, CR4.PAE=1, CS.L=1 and CS.D=1
 * Test CR3 63:0: 10000001007000
 * Test CR3 63:0: 20000001007000
 * Test CR3 63:0: 40000001007000
 * Test CR3 63:0: 80000001007000
 * Test CR3 63:0: 100000001007000
 * Test CR3 63:0: 200000001007000
 * Test CR3 63:0: 400000001007000
 * Test CR3 63:0: 800000001007000
 * Test CR3 63:0: 1000000001007000
 * Test CR3 63:0: 2000000001007000
 * Test CR3 63:0: 4000000001007000
 * Test CR3 63:0: 8000000001007000
 * Test CR3 63:0: 1007000
 * Test CR4 31:12: 1020
 * Test CR4 31:12: 2020
 * Test CR4 31:12: 4020
 * Test CR4 31:12: 8020
 * Test CR4 31:12: 80020
 * Test CR4 31:12: 800020
 * Test CR4 31:12: 1000020
 * Test CR4 31:12: 2000020
 * Test CR4 31:12: 4000020
 * Test CR4 31:12: 8000020
 * Test CR4 31:12: 10000020
 * Test CR4 31:12: 20000020
 * Test CR4 31:12: 40000020
 * Test CR4 31:12: 80000020
 * Test CR4 31:12: 1020
 * Test CR4 31:12: 2020
 * Test CR4 31:12: 4020
 * Test CR4 31:12: 8020
 * Test CR4 31:12: 80020
 * Test CR4 31:12: 800020
 * Test CR4 31:12: 1000020
 * Test CR4 31:12: 2000020
 * Test CR4 31:12: 4000020
 * Test CR4 31:12: 8000020
 * Test CR4 31:12: 10000020
 * Test CR4 31:12: 20000020
 * Test CR4 31:12: 40000020
 * Test CR4 31:12: 80000020
 * Test CR4 63:32: 100000020
 * Test CR4 63:32: 1000000020
 * Test CR4 63:32: 10000000020
 * Test CR4 63:32: 100000000020
 * Test CR4 63:32: 1000000000020
 * Test CR4 63:32: 10000000000020
 * Test CR4 63:32: 100000000000020
 * Test CR4 63:32: 1000000000000020
 * Test DR6 63:32: 1ffff0ff0
 * Test DR6 63:32: 10ffff0ff0
 * Test DR6 63:32: 100ffff0ff0
 * Test DR6 63:32: 1000ffff0ff0
 * Test DR6 63:32: 10000ffff0ff0
 * Test DR6 63:32: 100000ffff0ff0
 * Test DR6 63:32: 1000000ffff0ff0
 * Test DR6 63:32: 10000000ffff0ff0
 * Test DR7 63:32: 100000400
 * Test DR7 63:32: 1000000400
 * Test DR7 63:32: 10000000400
 * Test DR7 63:32: 100000000400
 * Test DR7 63:32: 1000000000400
 * Test DR7 63:32: 10000000000400
 * Test DR7 63:32: 100000000000400
 * Test DR7 63:32: 1000000000000400
 * Test MSRPM address: ffffffe000
 * Test MSRPM address: ffffffe001
 * Test MSRPM address: fffffff000
 * Test MSRPM address: 435000
 * Test MSRPM address: 435fff
 * Test IOPM address: ffffffc000
 * Test IOPM address: ffffffd000
 * Test IOPM address: ffffffdffe
 * Test IOPM address: ffffffe000
 * Test IOPM address: fffffff000
 * Test IOPM address: 438000
 * Test IOPM address: 438fff

Lara Lazier (4):
  target/i386: Added MSRPM and IOPM size check
  target/i386: Added DR6 and DR7 consistency checks
  target/i386: Added consistency checks for EFER
  target/i386: Added VMRUN consistency checks for CR3 and CR4

 target/i386/cpu.h                    | 31 +++++++++++
 target/i386/svm.h                    |  5 ++
 target/i386/tcg/sysemu/misc_helper.c |  6 +++
 target/i386/tcg/sysemu/svm_helper.c  | 80 +++++++++++++++++++++++++---
 4 files changed, 115 insertions(+), 7 deletions(-)

-- 
2.25.1



             reply	other threads:[~2021-07-05  8:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-05  8:17 Lara Lazier [this message]
2021-07-05  8:17 ` [PATCH 1/4] target/i386: Added MSRPM and IOPM size check Lara Lazier
2021-07-06 16:01   ` Paolo Bonzini
2021-07-05  8:18 ` [PATCH 2/4] target/i386: Added DR6 and DR7 consistency checks Lara Lazier
2021-07-06 16:02   ` Paolo Bonzini
2021-07-05  8:18 ` [PATCH 3/4] target/i386: Added consistency checks for EFER Lara Lazier
2021-07-06 16:48   ` Paolo Bonzini
2021-07-05  8:18 ` [PATCH 4/4] target/i386: Added VMRUN consistency checks for CR3 and CR4 Lara Lazier
2021-07-06 16:52   ` Paolo Bonzini

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=20210705081802.18960-1-laramglazier@gmail.com \
    --to=laramglazier@gmail.com \
    --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 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).