Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp557747pxy; Thu, 22 Apr 2021 08:13:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlBNH6CFTyZSGkhcoLCTV7ngDDvDkzoYrh8daLQ4BPrw2TLQp8MTBZTdpZO/kYxQJ7wokh X-Received: by 2002:a17:907:1b11:: with SMTP id mp17mr3980083ejc.1.1619104407039; Thu, 22 Apr 2021 08:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619104407; cv=none; d=google.com; s=arc-20160816; b=vTzCvgDP14BVyo9JJhbF/qED42jIBpQIXXdWAIKPTvFSlgIAB30TeSWW9Tg1LtrXuh 0my5OnMnfaPHAe5tdb5dd91miROdEYqxhZt/KLZMRBQo1VLWcWnq3obLdkccnOHj2Mue iB8ZeEU3C/iLNTlTg/iND0NfEi2lLRKoJmXjmi/I2aP7NUOmZFt5sFufbA5CqJHel8iO IhWX54cbx2qIIFK6rBdYB2pW+yHQYIVtUH6T0vppPvnjmMqxHOBlAdpJLFPhZePBGOvu qn7hy3LhqH8Yv9pmcdrJNMaUBfUhLyNhgxMdTxC0b/ghh6hq0yv3X64hIdmD8H047K6M nU8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DE3ajipCLGOoeJxse+uDWjYBYGnyKVCVQDv9OtWAWVI=; b=SBI3dCVCIhSedmXjmYv6P0Rs+tRwHtC7CRsbFU+Ycs3jdese4bbl9a//HEwrMCzSvD AqihMi24ogZyy/VfPVoOYD2aoCOKvu1FlkreyjvdPO7MckY18sBTq9DVDLu7fGXQmL5z ckQ4QngMBv2L9j1/bogzuTSN/isVwgEO6QXmHVgI9J3bzziqLcf0Ufz/AUSTA5diw0jm 0Y/SCIX37jJKpZ+cHdHZdZ9UlUFN3aWxf1KJfogEXZhawpaoHjfwlla6tJs9K3bz5QDA GRyxvezw7Y4A2cvYxPurD9wBcQ5cbqKCwoTVzY/KKorjNL30RnkAmiuSfeRXuZH0AJ1N h04Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=YlnwiUJh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc2si2605330edb.287.2021.04.22.08.13.02; Thu, 22 Apr 2021 08:13:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=YlnwiUJh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236971AbhDVPKq (ORCPT + 99 others); Thu, 22 Apr 2021 11:10:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:51974 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236397AbhDVPKq (ORCPT ); Thu, 22 Apr 2021 11:10:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1619104210; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DE3ajipCLGOoeJxse+uDWjYBYGnyKVCVQDv9OtWAWVI=; b=YlnwiUJh4StAZX+XIutv314AStIgqEqhikMDiBZkbNqgG1wcxmZslPpvM3mPjQUuOyZq7e 8ozA0Mrkd+QJ0dJrUEi99VaukzQmizcyv+cZxSv4fcLOcPbKJLDYF8wXH2UNengKHDlTaR iJusQ+0aBJtbRK3RqPELQGNfl41Fisc= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C4992B16C; Thu, 22 Apr 2021 15:10:10 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, x86@kernel.org Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Peter Zijlstra Subject: [PATCH 0/3] xen: remove some checks for always present Xen features Date: Thu, 22 Apr 2021 17:10:04 +0200 Message-Id: <20210422151007.2205-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some features of Xen can be assumed to be always present, so add a central check to verify this being true and remove the other checks. Juergen Gross (3): xen: check required Xen features xen: assume XENFEAT_mmu_pt_update_preserve_ad being set for pv guests xen: assume XENFEAT_gnttab_map_avail_bits being set for pv guests arch/x86/xen/enlighten_pv.c | 12 ++---------- arch/x86/xen/mmu_pv.c | 4 ++-- drivers/xen/features.c | 18 ++++++++++++++++++ drivers/xen/gntdev.c | 36 ++---------------------------------- 4 files changed, 24 insertions(+), 46 deletions(-) -- 2.26.2