From: Jan Kiszka <jan.kiszka@web.de>
To: Gmail <yzt356@gmail.com>
Cc: "kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"gleb@redhat.com" <gleb@redhat.com>,
"pbonzini@redhat.com" <pbonzini@redhat.com>
Subject: Re: [PATCH v2] kvm-unit-tests: VMX: Split VMX test suites to separate file
Date: Sun, 04 Aug 2013 20:46:00 +0200 [thread overview]
Message-ID: <51FEA168.7030401@web.de> (raw)
In-Reply-To: <4AC0C8B6-B1C5-416F-9A49-A52B0581C845@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
On 2013-08-04 20:25, Gmail wrote:
> 在 2013-8-5,2:08,Jan Kiszka <jan.kiszka@web.de> 写道:
>
>> On 2013-08-04 20:04, Arthur Chunqi Li wrote:
>>> @@ -432,6 +432,22 @@ enum Ctrl1 {
>>> #define HYPERCALL_MASK 0xFFF
>>> #define HYPERCALL_VMEXIT 0x1
>>>
>>> +
>>> +extern u64 hypercall_field;
>>> +extern u32 vpid_cnt;
>>> +extern ulong fix_cr0_set, fix_cr0_clr;
>>> +extern ulong fix_cr4_set, fix_cr4_clr;
>>> +extern struct regs regs;
>>> +extern struct vmx_test *current;
>>> +extern bool launched;
>>
>> You didn't address my question if we need them all to write test cases
>> or if some are actually core internal.
> You are right. Not all global variants in last version is necessary for test cases, so I move some of them to vmx.c internal. The rest ones in this version are needed by tests to identify some states.
I can imagine 'regs' very well, but I've doubt about the rest.
'current', 'launched'? Again, rather export on demand than in advance.
Two additional questions, not directly related to the patch:
1. hypercall_field - why not passing this parameter via a register?
Helps in case you have multiple guests running.
2. vpid_cnt - what's the purpose, why writing VPID at all? It's not
needed, and not even supported on some CPUs.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
next prev parent reply other threads:[~2013-08-04 18:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-04 18:04 [PATCH v2] kvm-unit-tests: VMX: Split VMX test suites to separate file Arthur Chunqi Li
2013-08-04 18:08 ` Jan Kiszka
2013-08-04 18:25 ` Gmail
2013-08-04 18:46 ` Jan Kiszka [this message]
2013-08-05 0:55 ` Arthur Chunqi Li
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=51FEA168.7030401@web.de \
--to=jan.kiszka@web.de \
--cc=gleb@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=yzt356@gmail.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 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.