[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v9 00/11] acquire_resource size and external IPT monitoring


  • To: Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Tue, 2 Feb 2021 12:44:11 +0000
  • 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-SenderADCheck; bh=uFCNrdhEgxKpnC8BCo9ZS1EsEJGW/wgh2lGPWHcanj8=; b=jWLFK+HU2nlY63vMc/qLiUunO1Sggkf+xfjdcPCIMUWLA9i7H7f2J3N75HZl9Uo6w6J6iSmiE8CFghVse4woeyBwycEHrAWuuNZGG1t2s4xaPCE11f0PoyJqeKkjkRVXQ1QS+/pnyMkfNzhsto1WDf3RJiz5z/ZMJ9FPih4MrO6KsUH/NdMtVCZnCkxpyIhADMqivs3IeeUDw/aq+u7iWJJMhD5SXRPy+dGrHtll+BVQsZCIZdjXmhiFpWv0O7g/5asdT5T90kmQPkABhxk8JW+gZ9j6ir8OF517hBl/V8sSsqcmZa2N9Er2w6Goxu90+NZQwDVJ0294RsM2G9wbFQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PVvD8oORX6qyupbnz/gYZrLddHJ5MvZnHTvI1dgSFs5XJvYON7WQeSVwIquYpK1kIqP45WvKRIL/8PhNJLm0J9avuXKJ8w3DMJbo7LjqenXHT3Qqrxp44KTMalenbeheH8VB61Jad/iE5rvAr7fc6rDV/9yW1EgN6EjsIihFlLXWIaws6VqRfsfWanPot4oTaU75lNSKqv1S/0kSgj5Yas0bfJBDK1I3AkO3Wtn0pdCYbU5mYwbuLor/+SDAw/Vr4RxJ2Vk6QwHFL/hVf2FTtTZvfURqrhNU1qXIU9NstcME1WHG2P1/pMbmclTigUmDWYM1oOymyGxsLa2dEMEpDQ==
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Jun Nakajima" <jun.nakajima@xxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>, Michał Leszczyński <michal.leszczynski@xxxxxxx>, "Tamas K Lengyel" <tamas@xxxxxxxxxxxxx>
  • Delivery-date: Tue, 02 Feb 2021 12:45:24 +0000
  • Ironport-sdr: V+sMeBFPq8dGK9WQQMkBCjWb+VMygr24/MJrGmDl71XYS3josa5LGm8EzZOTp7EghKD2eQ+xcN CtYxk0kVRjzjhsYHRtouN7716BV1zvPUUDaq379e4I69NfXMTZZoWiNBtPtNqzCS6ytJS4Ohld Ui3heynlxGZgYfsGiLUHZaoKwVJmBta6D5D1o0Tlnawmg6lP8wcjHOTtwmg3bgYDzaIkcteHmk fJ7c66hq3kRqlpeF5A9e8Z595JkRGo38Cpj1xAQ/n8GR8d8coedlOz6LnpHLcY4fDuAwVPUxf8 iCI=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 02/02/2021 12:20, Ian Jackson wrote:
> Since you mentioned patch 1 and asserted it didn't need a release-ack,
> I looked at it in a little more detail.  It seems to contain a
> moderate amount of (fairly localised) restructuring.  IDK whether
> XENMEM_acquire_resource is used by non-IPT configurations but I didn't
> see an assertion anywhere that it isn't.

Acquire resource is used by Qemu/demu/varstored/etc (for IO emulation)
and the the domain builder (seeding the grant table with
xenstore/console details).

None of these usecases used a size calculation, and made blind mapping
calls of 1 page in size.

IPT is the first usecase to want to map more than a single page in one go.

> I appreciate that whether something is "straightforward" on the one
> hand, vs involving "substantial refactoring" on the ohter, or this is
> a matter of judgement, which I have left up to the commiters during
> this part of the freeze.  But for the record my view is that this
> patch is not a "straightforward bugfix" and needs a release ack.

I have extensive testing, demonstrating the bug already present in
staging (unable to map the guests whole grant table in default
configurations), and demonstrating the correctness of the fix.

Some of this testing (specifically, the toos/tests/* binary) is
something I plan to fix up over the ARM IOERQ and other series, and
submit later this week.  It will demonstrate the current bug in staging,
and show it fixed with patch 1 committed.  (This is something I want to
become an autotest in due course.)

Other parts of this testing cannot be submitted.  To get the compat
layer correct, I needed an XTF test and modified Xen which had a known
pattern, to check the marshalling logic didn't lose anything when a
continuation hit an interesting.  I can talk you through these tests and
assert that I have run them, but its not testing logic we can commit
into Xen, and its not anything which gets tested by OSSTest because we
don't test 32bit PVH dom0's in anger.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.