kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sean Christopherson <sean.j.christopherson@intel.com>
To: Marc Orr <marcorr@google.com>
Cc: kvm@vger.kernel.org, jmattson@google.com, pshier@google.com,
	krish.sadhukhan@oracle.com, pbonzini@redhat.com,
	rkrcmar@redhat.com
Subject: Re: [kvm-unit-tests PATCH v6 2/2] x86: nvmx: test max atomic switch MSRs
Date: Mon, 23 Sep 2019 13:08:48 -0700	[thread overview]
Message-ID: <20190923200848.GK18195@linux.intel.com> (raw)
In-Reply-To: <20190920222945.235480-2-marcorr@google.com>

On Fri, Sep 20, 2019 at 03:29:45PM -0700, Marc Orr wrote:
> +		u32 exit_reason;
> +		u32 exit_reason_want;
> +		u32 exit_qual;
> +
> +		enter_guest_with_invalid_guest_state();
> +
> +		exit_reason = vmcs_read(EXI_REASON);
> +		exit_reason_want = VMX_FAIL_MSR | VMX_ENTRY_FAILURE;
> +		report("exit_reason, %u, is %u.",
> +		       exit_reason == exit_reason_want, exit_reason,
> +		       exit_reason_want);
> +
> +		exit_qual = vmcs_read(EXI_QUALIFICATION);
> +		report("exit_qual, %u, is %u.", exit_qual == max_allowed + 1,
> +		       exit_qual, max_allowed + 1);

I'd stick with the more standard "val %u, expected %u" verbiage.  E.g.:

	exit_reason, 34, is 35

versus

	exit_reason 34, expected 35

The "is" part makes it sound like the value in the VMCS *is* 35.

  reply	other threads:[~2019-09-23 20:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-20 22:29 [kvm-unit-tests PATCH v6 1/2] x86: nvmx: fix bug in __enter_guest() Marc Orr
2019-09-20 22:29 ` [kvm-unit-tests PATCH v6 2/2] x86: nvmx: test max atomic switch MSRs Marc Orr
2019-09-23 20:08   ` Sean Christopherson [this message]
2019-09-25  1:18     ` Marc Orr

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=20190923200848.GK18195@linux.intel.com \
    --to=sean.j.christopherson@intel.com \
    --cc=jmattson@google.com \
    --cc=krish.sadhukhan@oracle.com \
    --cc=kvm@vger.kernel.org \
    --cc=marcorr@google.com \
    --cc=pbonzini@redhat.com \
    --cc=pshier@google.com \
    --cc=rkrcmar@redhat.com \
    /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).