From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAB4416D9C2 for ; Tue, 18 Jun 2024 10:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718707172; cv=none; b=HjSBnE6nItoTSKh3iqWwTyVOAPqB0DdCSY9eRU4DWJFxAN+pOQyNmcuN6z14D91QlgPufqANqyhCfcjbGHjY68XkethhLXswdbBCWq0vgAKNzT895BRKa16Q6wNYYsaAZk/RM9EuVqnZVoS2i43Rm5bcGXw/DsycCy4+dsC853Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718707172; c=relaxed/simple; bh=dFrRBkJl7R9hxvgTFXcfhz/5bf+uuLP1erp6wT8mbB0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MaBiT3ZIcWY4EZgOUKNY5FWmz/KWU1NeDqr7+6dGX3MO+8OkwsVdrCu2hjWG9Fs/PpZVzpYWJxD3XaWhrLj9oHHd5MhLq7rszIjYzmvBMxYKJm3do5ppB+5BCZ0Bme2j4YXg0j7EZ8Xx8sSpNbIOHfIuVZ93Eg80F5IitiNBQRI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=T9RiuzsJ; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="T9RiuzsJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718707169; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hUpnx4iA/H5rFTjd+Mex3wPRNbIj26vNn+VnYBxGz0o=; b=T9RiuzsJvbru3HMtYBNIqxK5tPq7An01B8nF0EWX0YJntRoYUNy/DT90zDxTe/Q5gmZSFS 4t+MlVbAdEllh9/t6QSER5yW3X/r6xbym/v9aUiC6h+0wmPkcUW6b/IdF8bJrliWg17OKB 0mJBwVO4LLtZpxqek9StKkFnOaxOD4c= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-664-0AESeZFuNyCX3vah7rm60Q-1; Tue, 18 Jun 2024 06:39:28 -0400 X-MC-Unique: 0AESeZFuNyCX3vah7rm60Q-1 Received: by mail-lf1-f70.google.com with SMTP id 2adb3069b0e04-52b7e000358so1552987e87.2 for ; Tue, 18 Jun 2024 03:39:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718707167; x=1719311967; 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=hUpnx4iA/H5rFTjd+Mex3wPRNbIj26vNn+VnYBxGz0o=; b=ZxgGKqXptY8kGvBAgp89sTHST5By0iDfTGjkEvQlmCd5gKcU2nvjVXGAUtAK8UN92y DTOjKfP6M2M5wYaDiUCuA4miX6pUiDw4kj5BK+z4EN6kMLb/yXnUlEoaD2RA3i62rfLL YmF52ePJ8bDjZCuCiWdmQRyeNfDflXzfF7GIB2vjiH2rbmKblL+aQgJ5l54XXGZLMl2f qluIeXDqlSaFLnVNBdf+UWEVsjriOdiZjB6iDQfOIZ4FJVPB0RDOxPukw+I+UTsDQ63W 8I1Tmwr/1mbO7PShyIyJJLDARbL0Olaq9UFDo6CyRhb0k8zyGfCVp19kEGEZMwPNt2B8 hmBw== X-Forwarded-Encrypted: i=1; AJvYcCXUMfpGvSF1M0e7cUd1cVGSmNY3AldMadIg/p/Cx2jyKwy+XB8vH55G5vm28UEGVgGZE6S2vCpx0qQ+fscVIGopbNlg/NKGf0kDKn/k X-Gm-Message-State: AOJu0YwDGdbdMg3l3pxh5A1RHHbaL2wVlIeGlQG0J2jVbIIaLkNXrmYi E7ymvQODG/y7ZGzt2MA063L6T8KyMJCi5YDh9ucxLuXimL4v/sr2eEw2WbNgkGo2sCxcMPn/6Rb k8QUrqj+bL4s3wBHiOke2kR4hTDPMO6B0rZ7heZCptT6BdzOA7jPw3phH5vudjQ== X-Received: by 2002:a05:6512:10c9:b0:52c:b5ab:b6cf with SMTP id 2adb3069b0e04-52cb5abb7e6mr5463293e87.45.1718707166754; Tue, 18 Jun 2024 03:39:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFze+XHONw1pKhSFRlONo3MnV+d+IuBKNx7zowmQrnW5HIibz+c67gR1XvzUPSIqN7ibLJNTw== X-Received: by 2002:a05:6512:10c9:b0:52c:b5ab:b6cf with SMTP id 2adb3069b0e04-52cb5abb7e6mr5463273e87.45.1718707166240; Tue, 18 Jun 2024 03:39:26 -0700 (PDT) Received: from redhat.com ([2a0d:6fc7:441:67bf:ebbb:9f62:dc29:2bdc]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42286eef9c1sm222635295e9.7.2024.06.18.03.39.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jun 2024 03:39:25 -0700 (PDT) Date: Tue, 18 Jun 2024 06:39:21 -0400 From: "Michael S. Tsirkin" To: Jakub Kicinski Cc: Jiri Pirko , Parav Pandit , Jason Wang , Cindy Lu , Dragos Tatulea , "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "netdev@vger.kernel.org" Subject: Re: [PATCH 1/2] vdpa: support set mac address from vdpa tool Message-ID: <20240618063613-mutt-send-email-mst@kernel.org> References: <20240617094314-mutt-send-email-mst@kernel.org> <20240617082002.3daaf9d4@kernel.org> <20240617121929-mutt-send-email-mst@kernel.org> <20240617094421.4ae387d7@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240617094421.4ae387d7@kernel.org> On Mon, Jun 17, 2024 at 09:44:21AM -0700, Jakub Kicinski wrote: > On Mon, 17 Jun 2024 12:20:19 -0400 Michael S. Tsirkin wrote: > > > But the virtio spec doesn't allow setting the MAC... > > > I'm probably just lost in the conversation but there's hypervisor side > > > and there is user/VM side, each of them already has an interface to set > > > the MAC. The MAC doesn't matter, but I want to make sure my mental model > > > matches reality in case we start duplicating too much.. > > > > An obvious part of provisioning is specifying the config space > > of the device. > > Agreed, that part is obvious. > Please go ahead, I don't really care and you clearly don't have time > to explain. Thanks! Just in case Cindy who is working on it is also confused, here is what I meant: - an interface to provision a device, including its config space, makes sense to me - default mac address is part of config space, and would thus be covered - note how this is different from ability to tweak the mac of an existing device -- MST