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

RE: [PATCH 3/6] In addition to preceding changes to ring disconnects, and associated logging, we also add some logging to check whether state change notifications are being sent in a timely manner between frontend and backend. Also a great assistance t...


  • To: "paul@xxxxxxx" <paul@xxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Martin Harvey <martin.harvey@xxxxxxxxxx>
  • Date: Thu, 22 Jul 2021 12:45:56 +0000
  • Accept-language: en-US
  • 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=DjoK/L30UoPE0hVLgb6qiqK644nOH4nlpb8QRZGgk6E=; b=W4rlA2L9B0ZjT+bZwDSQG/AmX8/p+8fGCp9Fl3jfddZ3RGWvX5PEKadY2r5pTS+JuH4Q7bpMpbgeIAwnNubD1p0G5udeEd77eRDQHOWa0cxrFIP4pNYDbWjwIOhmjHLvrWEaM8MPGjfnjK1X+khIIzR1Tct8aPrn5Ugua1swMyPNEiVYdPQOu7jRiNO/OnR1KBPf8C5rdUjQfqPEJw863RmPYO5C/eM+MmfEr4JgNQPu8rU95conpu0PrQ1fPw33/jD87K/zWKlummdpixNtLga0HSAkMqVbb8cmfbXTKBmdxfQx1hXwTlaLKka0ywe6ovLTVhxi4Adm9FjExZXIzQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NPoFW1rODXFA2FhK7SH7uNuVpnfXSRhe2nupy4UUu9q2JgvuXMlQ5DVCHRTDPWwffyEEDyl+/h5SfzcnrNSt2CiaAOpKMnlOkYNBxJBOO7wm2p/9eYmnDGauhjrT6CWh6rQhLBr+ThjGJn7OIxejW1QUSCKu2XyeBUtmRNoIBnD4TSTnpjdbWbd3TBGpPl0L+WUujh86kSjwcRU9YKoz3d6VDYt6SEe1BsJeDsg77rMMYM7da9O5aetDoZNct9Za6dPVohP/AwTsu/L+Fm/73RcTrqVOZJNnX1ZVTILd3mbqpiIrKfVGZOpQPrVLR2OgZogsChmWdhaFSIbGrIo2kQ==
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Delivery-date: Thu, 22 Jul 2021 12:46:03 +0000
  • Ironport-hdrordr: A9a23:c6T77q3Uy9WoBF03j9B58wqjBQdyeYIsimQD101hICG9Lfb2qy n+ppgmPEHP5Qr5AEtQ4+xoS5PwPE80kqQFrrX5XI3SEDUO3VHHEGgM1/qF/9SNIVycygcZ79 YaT0EcMqy/MbEZt7eC3ODQKb9Jq7PnkJxAx92ut0uFJTsaM52IhD0JbzpzZ3cGIzWucqBJcK Z0iPA3xQaISDAyVICWF3MFV+/Mq5ngj5T9eyMLABYh9U2nkS6owKSSKWnY4j4uFxd0hZsy+2 nMlAL0oo+5teug9xPa32jPq7xLhdrazMdZDsDksLlUFtyssHfqWG1SYczGgNkHmpDq1L/sqq iKn/4UBbUw15oWRBDynfKi4Xi47N9k0Q6f9bbRuwqdnSW+fkNgNyMJv/MmTjLJr0Unp91yy6 RNwiaQsIdWFwrJmGDn68HPTAwCrDv9nZMOq59ks5Vka/pWVFaRl/1swGpFVJMbWC7q4oEuF+ djSMna+fZNaFufK3TUpHNmztCgVmk6Wk7ueDlJhuWFlzxN2HxpxUoRw8IS2n8G6ZImUpFBo+ DJKL5hmr1CRtIfKah9GOACS82qDXGle2OGDEuCZVD8UK0XMXPErJD6pL0z+eGxYZQNiIA/nZ zQOWkowlLau3ieffFm+ac7vywlbF/NLQgF+/sukqSR4IeMNYYDGRfzO2wTrw==
  • Ironport-sdr: 0HuBP2cP6hXkPK0xkZIHUmBOGbVbdvyQR7U8wQXEkOyu9zHpIR9CVlAiJL8aZc7t4m9ASpajDd ydvCO9ig7+jnsasjRLoesiFELgGGmCM9K35S2ZdWL6RftRQZ16lprXz9idc+UBAQ+hkOJ5aAPq V8Noe76t7EYWUrXmLwrJliqenKjJlYZgfg2fjQtijTEofEKjby/BVketJ3YbGpWYzbnKVzwyVv EL4h7tpcTnZQwQr1dJ/odyT88NeFRbyak44l/023SdnW6VsAOyUWUIlUlRkGk9M+GX8yxIFOel e62/taiOGcEpCAEcNJUHj1ho
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
  • Thread-index: AQHXflRreFB6RLm0+kG5EG3PLp2CPatO7wxw
  • Thread-topic: [PATCH 3/6] In addition to preceding changes to ring disconnects, and associated logging, we also add some logging to check whether state change notifications are being sent in a timely manner between frontend and backend. Also a great assistance t...


-----Original Message-----
From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of 
Paul Durrant
Sent: 21 July 2021 18:18
To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH 3/6] In addition to preceding changes to ring disconnects, 
and associated logging, we also add some logging to check whether state change 
notifications are being sent in a timely manner between frontend and backend. 
Also a great assistance t...

> On 20/07/2021 14:29, Martin Harvey wrote:
> > Signed-off-by: Martin Harvey <martin.harvey@xxxxxxxxxx>
> > +    const ULONGLONG             TimeoutDelta = 120000;
>
> NIT: I don't think you really need 'Delta' in the name, just 'Timeout' 
> would suffice (and I think it would be more consistent with other code).

Yes, but unfortunately that conflicts with the timeout used in the KeWaitFor ...

Perhaps more logical and less confusing would be "TotalTimeout".

> > +    if (TimeDelta >= TimeoutDelta) {
> > +        Error("%s timed out.\n", __FrontendGetBackendPath(Frontend));
> > +    }

> No need for braces on single-line ifs and no full stop needed in the log 
> message. Since it's not in context and I can't remember... does > the path 
> include the actual 'state' key name? It's a lack of change in that particular 
> key we're triggering on here.

Ah. It's pulled out of xenbus store, so I think not. Checking he preceding 
code, the store watch is added to "state", which is a level below the backend 
path, which also seems to indicate not.

Could add something extra in the dbg message about "state change timed out"?

MH.

 


Rackspace

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