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

Re: GNTTABOP_setup_table yields -1 PFNs


  • To: Taylor R Campbell <riastradh-xen-devel@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 8 Jul 2024 11:16:13 +0200
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 08 Jul 2024 09:16:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 08.07.2024 11:09, Jan Beulich wrote:
> On 06.07.2024 04:22, Taylor R Campbell wrote:
>> On a Xen 4.14 host (with extraversion=.0.88.g1d1d1f53), with version 1
>> grant tables, where GNTTABOP_query_size initially returns nr_frames=32
>> max_nr_frames=64, a NetBSD guest repeatedly queries
>> GNTTABOP_setup_table for successively larger nr_frames from 1 up.
> 
> First question: Is there some earlier GNTTABOP_setup_table that you invoke?
> I'd expect (and also observe) nr_frames=1 initially.
> 
> Second: The version you name is pretty unclear from an upstream perspective.
> Leaving aside that 4.14 is out of support, it's entirely unclear whether you
> at least have all bug fixes in place that we have upstream (4.14.6). Without
> that it's hard to see what you're asking for.
> 
>> The guest initially gets arrays of valid-looking PFNs.  But then at
>> nr_frames=33, the PFNs [0] through [31] in the resulting array are
>> valid but PFN [32] is -1, i.e., all bits set.
>>
>> GNTTABOP_setup_table returned 0 and op.status = GNTST_okay, so it
>> didn't fail -- it just returned an invalid PFN.  And _after_
>> GNTTABOP_setup_table yields -1 as a PFN, GNTTABOP_query_size returns
>> nr_frames=33 max_nr_frames=64, so the host thinks it has successfully
>> allocated more frames.
>>
>> What could cause the host to return a PFN -1?  Is there anything the
>> guest does that could provoke this?  Are there any diagnostics that
>> the guest could print to help track this down?  (I don't control the
>> host.)  Should a guest just check for -1 and stop as if it had hit
>> max_nr_frames?
> 
> I'm afraid for the moment, from just the information provided, I can't
> reproduce this using a simple patch on top of XTF's self-test (see below).
> Neither with a 64-bit PV guest, nor with a 32-bit one. I've been doing
> this with a pretty recent 4.19 Xen, though.

Doesn't reproduce for me with 4.14.6 either.

Jan



 


Rackspace

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