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

[PATCH] Replace usage of schedYield with KeStallExecutionProcessor


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Rachel Yan <rachel.yan@xxxxxxxxxx>
  • Date: Thu, 8 Sep 2022 16:26:01 +0000
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Rachel Yan <Rachel.Yan@xxxxxxxxxx>
  • Delivery-date: Fri, 16 Sep 2022 14:28:53 +0000
  • Ironport-data: A9a23:IEDNUK71H5n4gRyoKKxM3gxRtHXHchMFZxGqfqrLsTDasY5as4F+v jBJDGmAOq2LMTb9KN4iPtm1p0NVu5eEy4dmTgVt+y9mHi5G8cbLO4+Ufxz6V8+wwmwvb67FA +E2MISowBUcFyeEzvuVGuG96yM6jclkf5KkYMbcICd9WAR4fykojBNnioYRj5VhxNO0GGthg /uryyHkEALjimUc3l48sfrZ8ks+5KSq4lv0g3RlDRx1lA6G/5UqJMp3yZGZdxPQXoRSF+imc OfPpJnRErTxpkpF5nuNy94XQ2VSKlLgFVHmZkl+AsBOtiNqtC0qupvXAdJHAathZ5dlqPgqo DlFncTYpQ7EpcQgksxFO/VTO3kW0aGrZNYriJVw2CCe5xSuTpfi/xlhJB8YGdEh2t5oOF5f/ PA3BxoGVzu6q/3jldpXSsE07igiBMziPYdZsXB81zDJS/0hRPgvQY2Tu4Uehm1pwJkTQ7COP KL1ahI2BPjESydGMVcaDNQPleGAjXjjaTxI7lmSoMLb5kCDlFQujuCzYLI5fPTUQO9Mg2Obg 1nk3DrdASw+LO3clyKKpyfEaujnwnqgBdN6+KeD3uFrhhiL2CkfBQMbUXO/oOKlkQiuVtRHM UsW9yEy668o+ySWosLVBkPi5iTe51hFBoQWQ7ZSBByxJrT8vSi9WlEkdiF4V80vuOAZbzcT/ WalgIa8bdBwi4F5WU5x55/N823oZ3NMdjNdDcMXZVBbuoe++enfmjqKF48+S/Dt07UZDBmqm 1i3QD4Ca6L/ZCLh/4Gy5hj5jj2lvfAlpSZlt1yMDgpJAu6UDbNJhrBECnCBt56s1K7DEjG8U IEswqByFtwmA5CXjzCqS+4QBryv7PvtGGSC3wQyQMR+p2/xoiDLkWVsDNZWfR4BDyr5UWWxP B+7Vf15v/e/w0dGnYcoOtnsWqzGPIDrFMj/V+C8U+eilqNZLVbflByCkGbKgAgBZmBwzvxkU XpaGO7wZUsn5VNPlmHvGrZGi+J1nkjTBwr7HPjG8vhu6pLGDFb9dFvPGAHXBgzlxMtoeDnoz us=
  • Ironport-hdrordr: A9a23:wm3dKK5dZ5J+YAAQCAPXwMTXdLJyesId70hD6qhwISY6TiX+rb HLoB17726TtN9/YhEdcLy7VJVoIkmskKKdg7NhXotKNTOO0ADDQb2KhbGSpAEIcBeeygcy78 hdmtBFeb/NMWQ=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

From: Rachel Yan <Rachel.Yan@xxxxxxxxxx>

ETW trace Transmitter DPC times show improvement of up to twice the speed

Signed-off by: Rachel Yan <rachel.yan@xxxxxxxxxx>
---
 src/xenbus/gnttab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xenbus/gnttab.c b/src/xenbus/gnttab.c
index 33373c2..392f43d 100644
--- a/src/xenbus/gnttab.c
+++ b/src/xenbus/gnttab.c
@@ -529,7 +529,7 @@ GnttabRevokeForeignAccess(
         if (InterlockedCompareExchange16(flags, New, Old) == Old)
             break;
 
-        SchedYield();
+        KeStallExecutionProcessor(10);
     }
 
     status = STATUS_UNSUCCESSFUL;
-- 
2.37.3.windows.1




 


Rackspace

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