From: Andrew Cooper <amc96@srcf.net>
To: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: xen-devel@lists.xenproject.org, Wei Liu <wl@xen.org>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Jan Beulich <jbeulich@suse.com>, Ian Jackson <iwj@xenproject.org>
Subject: Re: [PATCH for-4.16 3/4] test/tsx: set grant version for created domains
Date: Mon, 15 Nov 2021 14:01:47 +0000 [thread overview]
Message-ID: <b6033d80-c362-4a6d-e6c8-b2d425fda759@srcf.net> (raw)
In-Reply-To: <YZJnagbiihYH99DA@Air-de-Roger>
On 15/11/2021 13:58, Roger Pau Monné wrote:
> On Mon, Nov 15, 2021 at 12:43:34PM +0000, Andrew Cooper wrote:
>> On 15/11/2021 12:17, Roger Pau Monne wrote:
>>> Set the grant table version for the created domains to use version 1,
>>> as such tests domains don't require the usage of the grant table at
>>> all. A TODO note is added to switch those dummy domains to not have a
>>> grant table at all when possible. Without setting the grant version
>>> the domains for the tests cannot be created.
>>>
>>> Fixes: 7379f9e10a ('gnttab: allow setting max version per-domain')
>>> Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
>>> Reported-by: Jan Beulich <jbeulich@suse.com>
>>> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>>> ---
>>> Cc: Ian Jackson <iwj@xenproject.org>
>>>
>>> This patch only modifies a test, so it should be safe to commit as
>>> it's not going to cause any changes to the hypervisor or the tools.
>>> Worse that could happen is it makes the test even more broken, but
>>> it's already unusable.
>> What do you mean unusable? Other than this, the test works.
> I mean, it's unusable because I broke it with the gnttab change, and
> that's it's current status unless this patch is applied.
>
>>> ---
>>> tools/tests/tsx/test-tsx.c | 4 ++++
>>> 1 file changed, 4 insertions(+)
>>>
>>> diff --git a/tools/tests/tsx/test-tsx.c b/tools/tests/tsx/test-tsx.c
>>> index fab99c135e..f1dcff4c30 100644
>>> --- a/tools/tests/tsx/test-tsx.c
>>> +++ b/tools/tests/tsx/test-tsx.c
>>> @@ -444,6 +444,8 @@ static void test_guests(void)
>>> struct xen_domctl_createdomain c = {
>>> .max_vcpus = 1,
>>> .max_grant_frames = 1,
>>> + /* TODO: switch to 0 once support for no grant table is added. */
>> I'd avoid these TODOs. It's test code, so really doesn't matter too much.
> I'm fine with this, when looking at the test code I didn't see any
> reason why gnttab was needed, so I thought it would be a fine use-case
> for opting out to grant table. As you say it's a test case, so it
> doesn't matter much.
>
> Do you want me to repost with the comments removed?
I'm happy to fix on commit, if nothing else needs reposting.
~Andrew
next prev parent reply other threads:[~2021-11-15 14:02 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-15 12:17 [PATCH for-4.16 0/4] gnttab: fallout/improvements from max version Roger Pau Monne
2021-11-15 12:17 ` [PATCH for-4.16 1/4] domctl: introduce a macro to set the grant table " Roger Pau Monne
2021-11-15 12:20 ` Jan Beulich
2021-11-15 12:26 ` Andrew Cooper
2021-11-15 13:23 ` Bertrand Marquis
2021-11-15 13:58 ` Julien Grall
2021-11-16 17:14 ` Ian Jackson
2021-11-15 12:17 ` [PATCH for-4.16 2/4] tests/resource: set grant version for created domains Roger Pau Monne
2021-11-15 12:21 ` Jan Beulich
2021-11-15 12:27 ` Andrew Cooper
2021-11-15 12:17 ` [PATCH for-4.16 3/4] test/tsx: " Roger Pau Monne
2021-11-15 12:21 ` Jan Beulich
2021-11-15 12:43 ` Andrew Cooper
2021-11-15 13:58 ` Roger Pau Monné
2021-11-15 14:01 ` Andrew Cooper [this message]
2021-11-16 17:15 ` Ian Jackson
2021-11-15 12:17 ` [PATCH for-4.16 4/4] tools/python: fix python libxc bindings to pass a max grant version Roger Pau Monne
2021-11-15 12:44 ` Andrew Cooper
2021-11-17 11:16 ` Ian Jackson
2021-11-16 17:12 ` Ian Jackson
2021-11-17 11:39 ` Marek Marczykowski-Górecki
2021-11-17 7:18 ` [PATCH for-4.16 0/4] gnttab: fallout/improvements from max version Jan Beulich
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=b6033d80-c362-4a6d-e6c8-b2d425fda759@srcf.net \
--to=amc96@srcf.net \
--cc=andrew.cooper3@citrix.com \
--cc=iwj@xenproject.org \
--cc=jbeulich@suse.com \
--cc=roger.pau@citrix.com \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.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.