From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A98871FA8E9 for ; Fri, 3 Jan 2025 14:31:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735914704; cv=none; b=iU5I4/cePRW4yFTuIJxZ4tfJ/vyPVTQSCHLAlJdg9jD4uUvVcPY83SVVqTD0aMTDLiS8n/JesFTuMjVKeApPNm43vgTvhk1BYU0ABuWub5s3qmDb8N725Z/fVKW5cSxhZ6SFNxZg7EWE9o9lCIiNrZh+yLU1gln+PfK3VWB331s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735914704; c=relaxed/simple; bh=Fe6qFIofTeLLtNfSn6+xkHpbsXHW37Fb7CK/4DFE27I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lhRtTz4tYjss1MQeKJ0HdSSontGg3qk6QH5OqziJzocX3EKiJZzjGkM2WPhbjOSPi+dvVKOfriDajGwVLL5617ks2Opo4WjeKull5gpBhFw5ms7+Y8piSzd/ZIuoDJQIEzVXpj2bqZEDN9KO7zrcBIQZqSv7fOUvNKfhxOlMtm8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=HPzQaNPK; arc=none smtp.client-ip=209.85.160.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="HPzQaNPK" Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-467b086e0easo63423941cf.1 for ; Fri, 03 Jan 2025 06:31:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1735914701; x=1736519501; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=KZz1gAr6AH9VZR9mcSijrSsgtvQXf/lr7rOewXx+J4E=; b=HPzQaNPKf3GjOEtZt82O9sdlm2IXiffXpbFVF9FMiEzEXF0r+pUl5IUN9peEZJJnLA CqobV0VOYVT8D3WhvgyF0tDX1c171qJEBeIj7PLVvNQL1DcDoscCbuM8RwFY/TBKaOeR ulpKBrSD9W5wGw7w1XL9WWklNdl52qrYJaGoKRoob/+hrm75ltY7xxD4Nht1pr2V531u Xgvnlf4CYPHALH+J8Wi5PR1/8Dsg870FWdKIF3BcrgYNTSXaYOSm+s+TcH6qeZpYWrjJ r3jb44kW8RVSB6NeReJJBbQuzyPVM8O1IiDhIRt3nnrDeQRgNDg+20MnWvis9T/AtfQ1 jVdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735914701; x=1736519501; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=KZz1gAr6AH9VZR9mcSijrSsgtvQXf/lr7rOewXx+J4E=; b=WjdrlFDhGz2wZ3t1S8vwOQpsOGqe7o5/Hn2B9lgMoEC7Ay1/8QzGul1sHjlPO3QwMI I5KLqnIssdw6izl0j1w3M9bBweHZE0Jg6+ziO3VZ6ve20eEOM2GzKWSnJezv/hYsa/aI JPQL513z/tUa9y34vuxcyI65lcmoV850iFT4y/XwaGDMftUaWwKlR252mV9btHaBordQ LLSITSuTastRGh4qeuPa7RkKb+/MVBFqAhP+ZmuyO7mDfhMKoSfgMvKkVDVmEd9+TEAA eMgnSYY0xKOSZ68Qtvhbn9wk8wRk/2S9rLJ2hGlJhtTAXivaio7JauzugJ5DDvap0Jn1 o8PA== X-Forwarded-Encrypted: i=1; AJvYcCXiPvDqeuUQAlukeD6iF6z9FoXHVEzVLp+oYJpL5ftt3EiIZwal5bPoovwX13NVFAmAO50=@vger.kernel.org X-Gm-Message-State: AOJu0YwZvCB6bMjBgEKhUBfj+pgTtsk7m+wFIo+iXSow5qay6UONRYZC WtjxkX0irR9oD64FQJJ4K717qbG11/bqMTXJXMnpqvog9w2/skMp8atGFSBnXM8= X-Gm-Gg: ASbGnctHuQQGYX4XMQSvmVODfCU8bIbN/t5OMgnpSwzsgXXRgd+0hcn+hbPHMG23qPz nGfDa/jCtMOcOMi1BcKnQ4buF9mr/3WGSC9QH/rSTAdErVZsRsGVoTu+4ZopUlBUjejVFuCjpcB 76tOkmTX83ghMKGQ2J3RFar8hi0eVInDo0uBVPc2XTWvCPxzyx82/NPFh7k56PuuhtR6rDE8/6L 65iC3SUGVCZDl5wICQ0t2WkVRPMi4XmhurE0mjmIZBQsVLhpw7Ee61KNna8hrGVIQaDxHNwzvrR GIIhMqKXxuruRd/ztIJ+DGO9LoJnNA== X-Google-Smtp-Source: AGHT+IGiZCm/3QIaBTSxT82414Bd+tcXwlZF1XMVW0fnnGbWf0zxnCHe0OPTUe/2fE3HXHDT4SXs4g== X-Received: by 2002:a05:622a:10c:b0:467:68a2:cb55 with SMTP id d75a77b69052e-46a4a8eb7eemr795329811cf.28.1735914701493; Fri, 03 Jan 2025 06:31:41 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-128-5.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.128.5]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-46a3e64cf47sm146147721cf.3.2025.01.03.06.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jan 2025 06:31:39 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1tTiiA-00000000iUS-1wLH; Fri, 03 Jan 2025 10:31:38 -0400 Date: Fri, 3 Jan 2025 10:31:38 -0400 From: Jason Gunthorpe To: David Woodhouse Cc: Thomas Gleixner , Alex Williamson , kvm@vger.kernel.org, quic_bqiang@quicinc.com, kvalo@kernel.org, prestwoj@gmail.com, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, iommu@lists.linux.dev, kernel@quicinc.com, johannes@sipsolutions.net, jtornosm@redhat.com Subject: Re: [PATCH RFC/RFT] vfio/pci: Create feature to disable MSI virtualization Message-ID: <20250103143138.GC26854@ziepe.ca> References: <20240812170014.1583783-1-alex.williamson@redhat.com> <20240813163053.GK1985367@ziepe.ca> <87r0aspby6.ffs@tglx> <03fdfde8dc05ecce1f1edececf0800d8cb919ac1.camel@infradead.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03fdfde8dc05ecce1f1edececf0800d8cb919ac1.camel@infradead.org> On Fri, Dec 13, 2024 at 09:10:30AM +0000, David Woodhouse wrote: > > A: The guest OS just hands the device a standard MSI message encoding > the target guest APIC ID and vector (etc.), and the IOMMU does the > rest. Nothing 'intercedes' between the guest and the device to mess > with that MSI message. > /me wakes up... Well, I share your dream at least. :\ Have the VMM shadow the virtual interrupt remapping tables and assign it to the phyiscal remapping so that the physical addr/data pair doesn't change. Driving interrupt routing fully via the remapping HW and not via MSI interception. IIRC Alex had a patch series for qemu to capture and rewrite the ath non-standard MSI locations, so virtualization worries should not block moving ath to use the device-specific MSI.. Jason