lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250409000835.285105-7-romank@linux.microsoft.com>
Date: Tue,  8 Apr 2025 17:08:35 -0700
From: Roman Kisel <romank@...ux.microsoft.com>
To: aleksander.lobakin@...el.com,
	andriy.shevchenko@...ux.intel.com,
	arnd@...db.de,
	bp@...en8.de,
	catalin.marinas@....com,
	corbet@....net,
	dakr@...nel.org,
	dan.j.williams@...el.com,
	dave.hansen@...ux.intel.com,
	decui@...rosoft.com,
	gregkh@...uxfoundation.org,
	haiyangz@...rosoft.com,
	hch@....de,
	hpa@...or.com,
	James.Bottomley@...senPartnership.com,
	Jonathan.Cameron@...wei.com,
	kys@...rosoft.com,
	leon@...nel.org,
	lukas@...ner.de,
	luto@...nel.org,
	m.szyprowski@...sung.com,
	martin.petersen@...cle.com,
	mingo@...hat.com,
	peterz@...radead.org,
	quic_zijuhu@...cinc.com,
	robin.murphy@....com,
	tglx@...utronix.de,
	wei.liu@...nel.org,
	will@...nel.org,
	iommu@...ts.linux.dev,
	linux-arch@...r.kernel.org,
	linux-arm-kernel@...ts.infradead.org,
	linux-doc@...r.kernel.org,
	linux-hyperv@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	linux-scsi@...r.kernel.org,
	x86@...nel.org
Cc: apais@...rosoft.com,
	benhill@...rosoft.com,
	bperkins@...rosoft.com,
	sunilmut@...rosoft.com
Subject: [PATCH hyperv-next 6/6] drivers: SCSI: Do not bounce-bufffer for the confidential VMBus

The device bit that indicates that the device is capable of I/O
with private pages lets avoid excessive copying in the Hyper-V
SCSI driver.

Set that bit equal to the confidential external memory one to
not bounce buffer

Signed-off-by: Roman Kisel <romank@...ux.microsoft.com>
---
 drivers/scsi/storvsc_drv.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index a8614e54544e..f647f8fc2f8f 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -686,6 +686,8 @@ static void handle_sc_creation(struct vmbus_channel *new_sc)
 	struct vmstorage_channel_properties props;
 	int ret;
 
+	dev->use_priv_pages_for_io = new_sc->confidential_external_memory;
+
 	stor_device = get_out_stor_device(device);
 	if (!stor_device)
 		return;
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ