Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2028713pxb; Thu, 11 Feb 2021 02:22:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGitl5EuQG8CVMi9HElarssjxw8QEmimKKkC9iy9IYL+ffszIvYIsEC2R7wOroE0UfrEeW X-Received: by 2002:a05:6402:35c2:: with SMTP id z2mr7631900edc.34.1613038954859; Thu, 11 Feb 2021 02:22:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613038954; cv=none; d=google.com; s=arc-20160816; b=oaB2jU+lLHA4p1cJkI9U/UM6sSy5Dgz1XK5d8GYdV6nG2Jso0xiTBTHtoYXNSuAC87 8MRk0wHOHFII5j8tzfRv1aymKcb0hE4QxjWelrdDvfpmZw5Jx7hwblqrSmeI8hnzrrUc KA6C2NayMdCDC9Mw/NW6ZWKQWgPrSo6rg+8zLiSzTCsvsVMcwtjDDr6lgjqsig7hLTt3 Ikb8YorGTNwigbS12FBEq1pFMw/IVLYaYqc8uFfnW+NwIIJu2ldZGRmOf9alTG8p1Jrr 2sOTWYXfVvRW3UhFcdys5Da7sNoOggG42el0KcxCJxI3ahTa0qJdRirksVWk0xMThLNE GW9w== 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=in+h4lBDIRM6mJ7t9cKXZa5bGbgsEjGF9LUcGBiK4pw=; b=eUnrggMQ63SmWbK6YfaT6gMMt4rTWQjf7Y2bK+dPDEVOLBIQYUUulcnmBN7thg1eMQ 9O4lDBcL24d157CHa+C40Oul4f/wxVndApXDMivVBoDXRM750Vg/zACkvQPYLIzW1gT1 3uOlidJpzPFF9dcO0qNEBT3zwX3uBpyrjB93BhhonSefNemt59N/UrToT7CpXiOXp5ph 7TIM7ti1+pKUOnG0oN7Lo5VT39ByNhrtu2hhTvgdopjZIR6seEQ+TmBKM7G1h6K1/WSP pRCMpnadq3OYi1TRUmDkm+Ob+uSZbtMQC1KQiHB9CQY79EbqXY4LTtpsMkyX0bCZQ8tv Dozw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="V6/nHild"; 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 jx6si3426968ejc.37.2021.02.11.02.22.11; Thu, 11 Feb 2021 02:22:34 -0800 (PST) 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="V6/nHild"; 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 S230028AbhBKKT5 (ORCPT + 99 others); Thu, 11 Feb 2021 05:19:57 -0500 Received: from mx2.suse.de ([195.135.220.15]:40916 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbhBKKS1 (ORCPT ); Thu, 11 Feb 2021 05:18:27 -0500 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=1613038660; 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=in+h4lBDIRM6mJ7t9cKXZa5bGbgsEjGF9LUcGBiK4pw=; b=V6/nHildAeeP4mTaW9pkNSIVN3W5JG7oTeZ/pm8uEYQwO4UvFiHUpuKpMve/BpBv1v2hDc zSTmNSzLpmjpGw4gEVI+1q7BnJ17tQmdjF7FJ39oRAfLmWt2kbB7tj8L2NeYypbl1pGYHA D4i8R84Uh3YQj183ZThezUvLnAY9qNY= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2F54EADA2; Thu, 11 Feb 2021 10:17:40 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini , stable@vger.kernel.org, Wei Liu , Paul Durrant , "David S. Miller" , Jakub Kicinski , Konrad Rzeszutek Wilk , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Jens Axboe Subject: [PATCH v2 0/8] xen/events: bug fixes and some diagnostic aids Date: Thu, 11 Feb 2021 11:16:08 +0100 Message-Id: <20210211101616.13788-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 The first four patches are fixes for XSA-332. The avoid WARN splats and a performance issue with interdomain events. Patches 5 and 6 are some additions to event handling in order to add some per pv-device statistics to sysfs and the ability to have a per backend device spurious event delay control. Patches 7 and 8 are minor fixes I had lying around. Juergen Gross (8): xen/events: reset affinity of 2-level event when tearing it down xen/events: don't unmask an event channel when an eoi is pending xen/events: avoid handling the same event on two cpus at the same time xen/netback: fix spurious event detection for common event case xen/events: link interdomain events to associated xenbus device xen/events: add per-xenbus device event statistics and settings xen/evtchn: use smp barriers for user event ring xen/evtchn: use READ/WRITE_ONCE() for accessing ring indices .../ABI/testing/sysfs-devices-xenbus | 41 ++++ drivers/block/xen-blkback/xenbus.c | 2 +- drivers/net/xen-netback/interface.c | 24 ++- drivers/xen/events/events_2l.c | 22 +- drivers/xen/events/events_base.c | 190 ++++++++++++++---- drivers/xen/events/events_fifo.c | 7 - drivers/xen/events/events_internal.h | 14 +- drivers/xen/evtchn.c | 29 ++- drivers/xen/pvcalls-back.c | 4 +- drivers/xen/xen-pciback/xenbus.c | 2 +- drivers/xen/xen-scsiback.c | 2 +- drivers/xen/xenbus/xenbus_probe.c | 66 ++++++ include/xen/events.h | 7 +- include/xen/xenbus.h | 7 + 14 files changed, 323 insertions(+), 94 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-devices-xenbus -- 2.26.2