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.129.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 9C844225388 for ; Mon, 7 Apr 2025 08:58:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744016307; cv=none; b=OmbdlIgXnfGNkpAo11c4fammsvJHlh+TphxA7FiSzGDt4EoaSHxJNH4yQIeVo3fwpI0igC8fpZjOFrmDQhtjatilc3Eio+M9XzPkpe8Fm7DB302Coh2L+vTfIlWnyFHeutQbnFNVYxgoqvX2oKNwE7NpSNEQo9qc3wZQxknAh1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744016307; c=relaxed/simple; bh=CG8MriHLl4x6ooaR3HqW98i5p2ZNjETviVu5KLjC8Ok=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rdKNXPrMQ9M0s1fkuNNAvUVG75bOYPZUMIrREepFpLTdoEAtyAwcJKTPxXkut+QSvT1cSjeSLFQrkha4j7E8pUMmPGnJIr2KJYOPooiCKoRooTR9ff0noH1f+IzqcXzd6/oQ1Oyb2k3pAV3f6hpfSotQWAknIjjIDTgl6fsuvi0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=JECNUsOk; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="JECNUsOk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1744016304; 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=ZV2HmK5xoNyWQTq3ZOPhBucA+WbSSx9NK0eZZiZro+I=; b=JECNUsOk6InsM64N6tecTWiUJZbDV5wi+58pL+l1zC3Cf2FklXMtmuTJZL+N1t7pKg5JC4 Lx25XgsH/dNGtITptNHqiE82oG02Ou36fq29T31AmhexBRem6Zzf4EfWHXwFijhZ1GzJbz p4BHSnL4t5A2RINqzrx2PTAVtMndmec= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-343-InWrmeWBO8yjFt5PgO_K6Q-1; Mon, 07 Apr 2025 04:58:23 -0400 X-MC-Unique: InWrmeWBO8yjFt5PgO_K6Q-1 X-Mimecast-MFC-AGG-ID: InWrmeWBO8yjFt5PgO_K6Q_1744016303 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-43cf172ffe1so32075655e9.3 for ; Mon, 07 Apr 2025 01:58:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744016302; x=1744621102; 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=ZV2HmK5xoNyWQTq3ZOPhBucA+WbSSx9NK0eZZiZro+I=; b=VH1+fXal4oIthdVtgP2yu1g+IX55Nw8HAM3FzbpuNSoquWtFGHbKLBF/Sm18Zm7S1P +pj0C8yNRI1z1MMK3tk1+D28xmjcZPIxJvdtvvNoHNzIeorE4+3Xfvrl9mBly+ndK6mz i0AKt10hp1hCQf/CI5Uw4+1OF1qqmZhDwfAR+SkM2oNgvgoAQCg/LyU4rbYl+Ut+L5U+ TxWd1Td59HrVlxEiBCrwJbcmwJnmMgwNBH7p1iWl2HVBxK8MJhBcUzxA+20M/1nbtvNf 7qw9HJQft7MxpJ6Yg+sE5rE3dTgv2RfYU5NuZ6MjDE10IXO3qJToZvbWw1Fd7uu0OGkX R1FA== X-Forwarded-Encrypted: i=1; AJvYcCVjMdvhxvhpBt/fLa/mc+9G6p8Ebg4jqd9KBNkSB1QdOdrFAXz1mCGrLB69S0ISnYp8Id8kp9IQGmF+FSQ=@vger.kernel.org X-Gm-Message-State: AOJu0YyVvxRjbGbT+zKf0Y6EoEldTNbLyu5SI/b6G17AjbBH7EbfEY+Y d42qk8Plyji6GYPW1bvfJfrlxbtPvTTk5BqDsouoFGNAciKfjMzV3xo+i1l+5r1xYMMxnjPd/gZ kX+3QyR7G1NzABWLhLYqJalNwgFf03IyV255niGwiMUhp9RyPkGrEAfB4AIkm4bAqexSN0Q== X-Gm-Gg: ASbGncuM3UfUfDdgO3XW0ezopUCc6qWEzBuVojzEvRigiYAAfA7zJYzHHfqXzSM2w2G y9G4ugGUnGAZu6uHbDRpIQcrl++cKkZAfs/nIFCxKgRgYa25JGfpZK/p5ioJ0SI7kAWuRSwXV5M bHOcodC+sUsW4vseHzVb735WFjakMWuMXyQEp3qU3i0ahuS526y1TraiCXJcs92mvoKkPL3/duX DO5S/ohEo78RF1JJnOvcPxr0LJFsJ77K2hp1vSwNOHqgNINxgVLN/87RokwZnBi+aQ/tNgGjn1a MeAruf6iJg== X-Received: by 2002:a05:600c:468c:b0:43c:f75a:eb54 with SMTP id 5b1f17b1804b1-43ecf89dddcmr115799915e9.13.1744016302267; Mon, 07 Apr 2025 01:58:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHhKuX0mUrFJVEgLqylU9xtfrLnxP9uo0MumXdr880MeHJm8lYFGfF2ifqGSX/2NbtuHhA09A== X-Received: by 2002:a05:600c:468c:b0:43c:f75a:eb54 with SMTP id 5b1f17b1804b1-43ecf89dddcmr115799665e9.13.1744016301907; Mon, 07 Apr 2025 01:58:21 -0700 (PDT) Received: from redhat.com ([2a0d:6fc0:1517:1000:ea83:8e5f:3302:3575]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43ec342827fsm124494865e9.6.2025.04.07.01.58.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Apr 2025 01:58:21 -0700 (PDT) Date: Mon, 7 Apr 2025 04:58:18 -0400 From: "Michael S. Tsirkin" To: David Hildenbrand Cc: Halil Pasic , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, virtualization@lists.linux.dev, kvm@vger.kernel.org, Chandra Merla , Stable@vger.kernel.org, Cornelia Huck , Thomas Huth , Eric Farman , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Wei Wang Subject: Re: [PATCH v1] s390/virtio_ccw: don't allocate/assign airqs for non-existing queues Message-ID: <20250407045456-mutt-send-email-mst@kernel.org> References: <20250404160025.3ab56f60.pasic@linux.ibm.com> <6f548b8b-8c6e-4221-a5d5-8e7a9013f9c3@redhat.com> <20250404173910.6581706a.pasic@linux.ibm.com> <20250407034901-mutt-send-email-mst@kernel.org> <2b187710-329d-4d36-b2e7-158709ea60d6@redhat.com> <20250407042058-mutt-send-email-mst@kernel.org> <0c221abf-de20-4ce3-917d-0375c1ec9140@redhat.com> <20250407044743-mutt-send-email-mst@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: On Mon, Apr 07, 2025 at 10:54:00AM +0200, David Hildenbrand wrote: > On 07.04.25 10:49, Michael S. Tsirkin wrote: > > On Mon, Apr 07, 2025 at 10:44:21AM +0200, David Hildenbrand wrote: > > > > > > > > > > > > > > > > > Whoever adds new feat_X *must be aware* about all previous features, > > > > > otherwise we'd be reusing feature bits and everything falls to pieces. > > > > > > > > > > > > The knowledge is supposed be limited to which feature bit to use. > > > > > > I think we also have to know which virtqueue bits can be used, right? > > > > > > > what are virtqueue bits? vq number? > > Yes, sorry. I got confused myself, it's vq index actually now, we made the spec consistent with that terminology. used to be number/index interchangeably. > Assume cross-vm as an example. It would make use of virtqueue indexes 5+6 > with their VIRTIO_BALLOON_F_WS_REPORTING. crossvm guys really should have reserved the feature bit even if they did not bother specifying it. Let's reserve it now at least? > So whatever feature another device implements couldn't use this feature bit > or these virtqueue indexes. > > (as long the other device never intends to implement > VIRTIO_BALLOON_F_WS_REPORTING, the virtqueue indexes could be reused. But > the spec will also be a mess, because virtqueue indexes could also have > duplicate meanings ... ugh) what do they do with vq indices btw? > -- > Cheers, > > David / dhildenb