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

[PATCH] x86/monitor: don't open-code hvm_has_set_descriptor_access_exiting()


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 30 Nov 2021 17:11:59 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=M5VznKEmvi3D+4dL8sK9NcwuWORXDFGH1k74atA7BxQ=; b=F9yix8AkvKKcLX3lGuv7ZJnVEvmS2p34yUMhie+kt7voqyeBkurZlYGuTW8Zlgsmxed2qAUoy7f/M7RIjLpHV7OWdK90VjizgU8P/gfW2lsWHvAUex0Ho3bA4d7d8il6ovitJOdE0b79h2zqE9EF1EJIgGekFoPnygigZidLBUn+kdhxArXyEtvZv0M0xW6xytolhtxosm3kIJ/ngdRhpZO5Zd4JX/eFoCDV1BjsYe3AtGkpWSuxdQxRy78nr7S7nZLYsvIJ1xRrp7fA75KqKnT6EvYlY1Oh5bzGc3j3Hy+/d91HD2jQTEcIW4rqH/qMGoIl8BWf+MLyUQCpwzmgrg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HYB01ihS+5cHP+i3I2okdmVZqTjf/scoGVleBEgApvd2q48vRlZag9/Wiym/bcYvgmBmTIthdSdjZOaIQZulRZR0xtu3UhwY42fl+2bvzrPZ5KPxAA4TyTjtomi20URELPszPZgOGX1KUCh6KCiYsFCKyr/tV8O6v8i3bFZfJ7nVgkKX84Jf/YS8Ac9HJb8h5P+nGkd94YuKAMahhcqqDWN4Tbg3gifCpXUG6W4krF7U2lAnLBpYQWLhr+wT0mzhciZiK0wEcXYvMWK9rWI0ySlgo1pkRahKTQxuTRNlvSK3f/C3JiWedR3dVBuStsnJLZCtPo9VnYIaMYsz+rlGMw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Tamas K Lengyel <tamas@xxxxxxxxxxxxx>, Alexandru Isaila <aisaila@xxxxxxxxxxxxxxx>, Petre Pircalabu <ppircalabu@xxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 30 Nov 2021 16:12:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/x86/monitor.c
+++ b/xen/arch/x86/monitor.c
@@ -263,7 +263,7 @@ int arch_monitor_domctl_event(struct dom
         if ( unlikely(old_status == requested_status) )
             return -EEXIST;
 
-        if ( !hvm_funcs.set_descriptor_access_exiting )
+        if ( !hvm_has_set_descriptor_access_exiting() )
             return -EOPNOTSUPP;
 
         domain_pause(d);




 


Rackspace

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