[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-4.16 3/4] test/tsx: set grant version for created domains
- To: Andrew Cooper <amc96@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Mon, 15 Nov 2021 14:58:02 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AFF8eXhEoTtHR3SbCoQV+0+LmyNuIRcz3YGjPPssfrc=; b=aXq0WNdhbXcczE6hAusA5I+oMzM4CZgcS+cNWVHUbEKVZpvlosjv1xSrDYaybFt3QG8Tfr+zAub4PlH7J4FVikXQ2lQfUiiGwMMVoIaOofWEZRTynjYfNt58Q77lZfoEDvOQTxfYdcwRqP5S4Cqn+pK64l6JQQlsaji5RqBTf6It3q+OBiBmCt9aJZe1rZrmwg6HCigb+l53YZW9wYNVaiLJTCOIi3XFnt4ZEDIMwL7i+AwWP5DXRGs1g1wdRAIw1m6CO+P3Dmivit6Q36EQdyxqItF5uakniJjQ+Ylx25hQcxe846bbyAWu7TDCWAnldTLAzoe/2vDQxW+cqGgCHQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QFoBxz/YKo9qhw2HsBqmcS16qC9yMERLzS30/rsZDmeO9YrhLHIxtK3wgoIU5r9MsdpOLwC3mN0z29t8jnrHKOSyUdeqKuT0wRUCrYvl+HSDiu/rxeyLajKEMl+qXyusPfLDrgy26v0MXycZPU+t9/l18BmKZr/zfkrsvG7EzrXpFBhpH1geQXA0brvpJaacUnkK8DQAj/j16lipfbct9sfNMvEwAXmtYrMYiZxvdEWosLNT5neIkTZvSimD641oFN8PYHTcV97UY0PS4CfOCzS6QRnzLSmEtUoFZO8TLJn3Dps9iyipqc3GIqVMwE32deOZZwirx66VXThMHHSNBQ==
- Authentication-results: esa4.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>
- Delivery-date: Mon, 15 Nov 2021 13:58:40 +0000
- Ironport-data: A9a23:k7as46P8bGfmrGTvrR1YkMFynXyQoLVcMsEvi/4bfWQNrUoh1mBTy jcYWGjQbv2Da2P1fdokPo6y9kwCsZ7dmIA3HQto+SlhQUwRpJueD7x1DKtR0wB+jCHnZBg6h ynLQoCYdKjYdpJYz/uUGuCJQUNUjMlkfZKhTr6bUsxNbVU8En540Es+w7dRbrNA2rBVPSvc4 bsenOWHULOV82Yc3rU8sv/rRLtH5ZweiRtA1rAMTakjUGz2zhH5OKk3N6CpR0YUd6EPdgKMq 0Qv+5nilo/R109F5tpICd8XeGVSKlLZFVDmZna7x8FOK/WNz8A/+v9TCRYSVatYozTZuola9 thqiZKXbRZuBrSTics2SxYNRkmSPYUekFPGCX22sMjVxEzaaXr8hf5pCSnaP6VBpLwxWzsXs 6VFdnZdNXhvhMrvqF6/YvNrick5atHiIasUu216zCGfBvEjKXzGa/ibtYcEgWlv7ixINe/5P NILRAF1UCvJZwQTYU4JWL4Ql+j90xETdBUH8QnI9MLb+VP7zgZ8zbzsO9r9YcGRSINemUPwj mPZ/UzpDxcCLtudxDGZtHW2iYfngifTSI8UUrqi+ZZCiViYlzI7EwcdWx29rOXRol6zXZdTJ lIZ/gIqrLMu7wq7Q9/lRRq6rXWY+BkGVLJt//YSsV/XjPCOukDAWzZCHmUphMEaWNEeR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1kJ 0QD5SWa+eAfGSS7/yKmTVQeuxIqLLskNHK9JfjJjVWPHlXgslbnnlE422gYytLrWd9dP4E/M 323Ls5m9PsQwVcUu2LQl0+G8TTrdzCk5zrJTYAGh4c8QGLyRel8qTzHRS01goXF2on+8ZvzU H11yjCoomzufCyzRHRk0fV8pRtgdPkjv9OHtaFhMQ5IijlziyoeINicbufuy1dmpDj1H8a1P 335zswNcV67H3cOkmzvBvWwgHllA0j7nfzoGXoyEfLkIjcfnYXGsBBjYVWfl/y8Ew7puxx16 pNwiawq4dXJQmoplW92/H4EzVR0makq3srluAey1ZFV5EFVbNXpYsDuGtIDZY7Gj7g4oxPKp ghMCjl3ocUTbqmVQGagoE2q+bcG0jbXy32DXTqg/blkwS/xxtCvg8lLM92pAZ3yHtycegC2w 3+CNUbqFh5dL5gUUtMPpZzfSKJMB25ffvtChPbHb21LtBNB5ryw6SHlIndotvaPqA18A==
- Ironport-sdr: 2QG8TDT8wOLF3x3PvpV9RCSmJ3RFOeIJuTrv3rl5JeA8Dikh+a10pMwJ3zyLYM0AbmrMF/5eAw wZadIOvXvkyTg2BXymxRnNWBtwZVTaaYfWx3W9RQiF0NOV82GUHlyZRYFjKoxwItUP6j6su7Bw YwZhxXvA4KRMeQJzCaBRhWPB4IfF4JuRG4q7DBEUheAhZF+UjkubS9JcoN1+kWb9gF6BGKOZvW sDmyoz1pZT5S229wcZ0ShjQHTmViwdYhZYihWJDkOFqAHdRHh6Bh0oxqlcqT+tmdwIevWJD7Tl PL6BT+hshmyZiySV8M/p5Wva
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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@xxxxxxxxxx>
> > Reported-by: Jan Beulich <jbeulich@xxxxxxxx>
> > Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> > ---
> > Cc: Ian Jackson <iwj@xxxxxxxxxxxxxx>
> >
> > 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?
Thanks, Roger.
|