Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp357546pxb; Thu, 9 Sep 2021 02:34:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwq8oPCs9EdeNhFRpKG3OzKfkMpOsTqkzK1Suf4nl60lIbsH6Zc3QGl7MI9m4YcvQVNOSrS X-Received: by 2002:a17:906:4f82:: with SMTP id o2mr2461719eju.10.1631180063778; Thu, 09 Sep 2021 02:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631180063; cv=none; d=google.com; s=arc-20160816; b=GgisH8m9stGjVeJkPwRDbcL5goMCo8QlIbBFUv56UQssoUCfW77CrvputUc7UUWDuf KBuJAJToCsTVM8+eEeeK1otACCoF6wmfxeETE9UZJJt0/ImBPYfVJqVGtBPGlcJLMSar LmrtlA+6ZIPOScNPfwuAs0wSXW/DXdBY5bcEMk4ICcP15FRYnx9ye6QYWLiGCx2zU6sd i9oiOKLVriIAsibB1j7S2TfwfU0finAlcRzTn5/4ovKEPb61zeDF9HZErm1oy2E8U54q ya0225nAkUPyHiS77+27TaKvgaeQkZDXMSIo53npUecIsvN0kQd6VP442k50E5U/RCxD ZOWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=l6oxYI9ut8npw7lFLZ/z3EUqhsCOkpfGiXzm3CrP2Pc=; b=wJKDpSmRGu3GhJeX/MyMuKrlKqtGEs2Q6KFh6WJJcloSamf0kmITIpW/6QXe/g0wxZ izZR1LyTp+geT5EMH+7JS1MWcVesUNAkLnJSMY/a0oM1xHc4xVdZsJvnf/T2hgSkuFdl lWzb/I7JSZVcf8O7jjUcElVN5MVmjDABevSQfl9mqpQ9Plyh4cxKCVdHRWiWE9enWBgl p6Yd29w4RVmXu60+o98CZK24U38PcpeKffmY+dSYflWfmjzw3jr46d3mCuNjzSwBn/zR zWgdeAzDhh8MCWYYpjpOg3c2vkq+R8yD9cAO7Jm5iPivenYAnUH7evtkyBXPIOJZD9TT k7mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hx8ktJsY; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j12si1431993edr.598.2021.09.09.02.34.00; Thu, 09 Sep 2021 02:34:23 -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=@redhat.com header.s=mimecast20190719 header.b=hx8ktJsY; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232975AbhIIJdn (ORCPT + 99 others); Thu, 9 Sep 2021 05:33:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:41247 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbhIIJdn (ORCPT ); Thu, 9 Sep 2021 05:33:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631179953; 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=l6oxYI9ut8npw7lFLZ/z3EUqhsCOkpfGiXzm3CrP2Pc=; b=hx8ktJsYHfshQC0D+JvZytQIVzVKJgiRIRKF2vk/Vhwzv40gxVeHHiVqGfkDSVuw5vRjff bw24jIqwaZMS/ImmOZeujXb8di+EFSnYIxRAonqT1D3pR8xnMBxB/VRhJUIsqCkC91yldT XGOikG1iOjW1+LoDY0zjtb+VkOZ7HCg= Received: from mail-lf1-f71.google.com (mail-lf1-f71.google.com [209.85.167.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-540-020vJ4ZGOtCbFQsYtFUdvQ-1; Thu, 09 Sep 2021 05:32:32 -0400 X-MC-Unique: 020vJ4ZGOtCbFQsYtFUdvQ-1 Received: by mail-lf1-f71.google.com with SMTP id bq3-20020a056512150300b003ee49c29389so496121lfb.15 for ; Thu, 09 Sep 2021 02:32:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l6oxYI9ut8npw7lFLZ/z3EUqhsCOkpfGiXzm3CrP2Pc=; b=WbWOiMpzsV8UO+rE68PUfH7+6VkgZ+LaeFeiXi6uDYuosMsDYoucFCDTKntZZ5k4Pn wT7hzYPnCugjAvUi0lXeElzgTUG/xvR2+nzimv41TqBcKVT0NwjpmEro+7cuWQ4Kte5C uGU3aDwckoYfNEoNzomcgvn5pkw+Z8GGVd4OuDFJdywNQvi+Y4mh3F2zn35YbTYO9MdT +zFbqQiuvSaO1442JD21T5fsDUbm1hMRx80ox4yXmF+B+8kbkDDf5jS36LwVxpO6TsoA 1CCQ/EnJvj6mfQhIOsEyeWCPn/jRABbOftt3kjq4y79NipYt73skL70WJiBXs9+JFcaQ Pxgg== X-Gm-Message-State: AOAM532maEe3/rRoQXX+DEM9B2MTEa7olR2M2aza0gOg61OxJXV8Kj21 TubbOEGd0vHX0kOac0GlhaBfWFGrWKGPTB/j60yPxjeZAcCm6bOBB8VbFj9cDfqcO0fNDyRhwu2 lP/0aHYQNZyAiQ+fGlBF6fPxZkB7yokRHVvOAdgkf X-Received: by 2002:a05:6512:2001:: with SMTP id a1mr1631116lfb.498.1631179950932; Thu, 09 Sep 2021 02:32:30 -0700 (PDT) X-Received: by 2002:a05:6512:2001:: with SMTP id a1mr1631107lfb.498.1631179950780; Thu, 09 Sep 2021 02:32:30 -0700 (PDT) MIME-Version: 1.0 References: <20210909051706-mutt-send-email-mst@kernel.org> In-Reply-To: <20210909051706-mutt-send-email-mst@kernel.org> From: Jason Wang Date: Thu, 9 Sep 2021 17:32:20 +0800 Message-ID: Subject: Re: [PATCH 5/6] vdpa: add get_vq_num_unchangeable callback in vdpa_config_ops To: "Michael S. Tsirkin" Cc: Wu Zongyong , virtualization , linux-kernel , wei.yang1@linux.alibaba.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 9, 2021 at 5:18 PM Michael S. Tsirkin wrote: > > On Thu, Sep 09, 2021 at 10:55:03AM +0800, Jason Wang wrote: > > On Wed, Sep 8, 2021 at 8:23 PM Wu Zongyong wrote: > > > > > > This new callback is used to indicate whether the vring size can be > > > change or not. It is useful when we have a legacy virtio pci device as > > > the vdpa device for there is no way to negotiate the vring num by the > > > specification. > > > > So I'm not sure it's worth bothering. E.g what if we just fail > > VHOST_SET_VRING_NUM it the value doesn't match what hardware has? > > > > Thanks > > More importantly is there and actual plan for supporting > legacy devices? I don't think they currently work at a number > of levels. I think the answer is no, it would introduce a lot of burdens. Thanks > > -- > MST >