Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp465642lqp; Wed, 12 Jun 2024 07:04:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2/HZKntuAdNQPdc56sL+Gscb617pAvzJG+vqOMVN+yG5Qx61o8YrPUzMMazOJNXj+1/EjOO5lK1r1BDPeMe0OUOnu9zIo+NNdaV4f7Q== X-Google-Smtp-Source: AGHT+IG01hE3GxFfnBjOkNPzspE1lSqf9lrvHyz9pNdGoHxc+IkPdy7SxhPVcwNJkcWaI/a6qz2I X-Received: by 2002:a50:d7c2:0:b0:57c:5fc8:c95d with SMTP id 4fb4d7f45d1cf-57ca9751bfdmr1236155a12.18.1718201075985; Wed, 12 Jun 2024 07:04:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718201075; cv=pass; d=google.com; s=arc-20160816; b=TSLw4Sb1zcNnH1NTCfdZoW3A5Erk4MUSF5ThWBPz24m6Tl7R8A6i3cGBDoI/Qk5sI5 h9vL5RzL17h30i0kUxNyKxSh8uX0694JsiXKSZ/EPQv9DcTnMKHhGjvUov/jnLcGjO8p /04X6rEJtT+2c2ESDILtH+tLNah82GaTSSTSu2Yu8tMRQRyMUXZ9/qtxSplhbysJd3GE KrxOTbyG/lJWxne2ak8LTEMs5XLlrwj4ck1uJTumJWw1eE0mZz4xCHbltxeD0mIpeETl Il64iJeWSZFGucrynX7Vob8AZIBMOCB1zU0PgheJmZdv8h7r66w62nPvgAuyo+Dt/w3s /gEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=VHS87YElUOWkANf6E72nxalS03lPC9WT8JCafxHD7gY=; fh=5C2D5DHxF7ccFr8cnpXAbVX8+YbVQsGeuO+VN9IEdEo=; b=f002fCsPqkSX0hfi5Dkob4SNjtjrtZPZh7kS7ZjqqJVUIL4VGzthNsZqVJ/KfRyxkZ KmjT+em1ovjg2yctjVVmASl929voDhM9W4KrLaaV57y6dzHQZBuOEbrfC8qg4TucO94I kbcdxzsejC4PEWkZK6/Tk/JwSxCzVhFay7LO+SGhpio+AFowRFpLWiXDvZwk6xFNYGK2 1HOr6Q8D0aOh0qTXUUkI3V/Froosy9kI4GKbUxYYOefTY1JDD3t4mrh+PIjjsIsvzFew JMqz8Dj2QG+Wqvzcxa1Z0un8XFVnMea4wRU8BNiIm8QXU56fPxMiv2NqUQMzJvxHN4dx /VkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dnztEUgO; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57aae0c578dsi6970886a12.59.2024.06.12.07.04.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dnztEUgO; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-211636-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211636-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7DD361F22339 for ; Wed, 12 Jun 2024 14:04:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4561517D8B5; Wed, 12 Jun 2024 14:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dnztEUgO" 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 DF7EB17B4F1 for ; Wed, 12 Jun 2024 14:04:26 +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=1718201068; cv=none; b=trLDGFoOvkXxP1HaQe59EyhN/AavezlRbYxV17DPwTEK0Qoe1rW+WKUhpazZcLoYlcgcAKMyBmlwZTVWSRe42/PQUWZo9dAioQZeV8ONlkRv3qQ/s6aBgL3vReb3IzeTdxqYaB94MTzhyPk1vRB6t56Lx3a2Lo1B4GqKo0cjIXQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718201068; c=relaxed/simple; bh=n6rQcdlTzLyq3J1ACt2i5X2K8jWLz6x7Pyg6vl9BQmw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oRfp4piTureTm/zO4lzxKYutBTGUqQIymtlnZrpt2dwjEsjr1LVs54r4rKHSOoC0RTQUl3j/PSbR/AbbFzWe1jjkjfpWtYUnLpVm4dOhBiaF3UZkGIjJNGYPM/4lOqE9pqmyTN8cJUfH0iuteUd28fUilFkwg1wjxiZDrYKM3lY= 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=dnztEUgO; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718201065; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=VHS87YElUOWkANf6E72nxalS03lPC9WT8JCafxHD7gY=; b=dnztEUgOc+Ad1hHvLIfeMjzJtyp3xCi3FMEQ43nVVAobscNfYjJ998CUYYCThS0vXMmeaW ZQ/9Lgq4vgF7SRKWijDqeODuzvb/aEo3kg0TPJjdfxBh9/I2cQ7+Zzhr20G0NSvkbXstXb 94ZF+/i1INsE5/jWADxNgXFaU8R0XpA= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-434-OCQM5DUDOyqfNylMhYtB1Q-1; Wed, 12 Jun 2024 10:04:24 -0400 X-MC-Unique: OCQM5DUDOyqfNylMhYtB1Q-1 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-6b062c433cfso24379906d6.0 for ; Wed, 12 Jun 2024 07:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718201063; x=1718805863; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VHS87YElUOWkANf6E72nxalS03lPC9WT8JCafxHD7gY=; b=RRcjoMeCQeeQ8hUOvxYOzkOar2XDKP7OErGHr7jk8mS29Tu0hfVlPvV0z3bE+Pjt9X 8p1pI8lUuf+mh1V7ALoF0IOyShMHa3Tn8w/xg2snXryVb2XHf0dBpowPpnoDi5a6GW5d niQnlXxapt1D+MJHOfDzoOBVUwPwMm9Zm1X0wpuVm2bSlr2bNQmz8LUZXaFfoldRLfvz EnOXUTCU/n7vPf0JN2i75OIQIEhgKj9ko8yinuk0lCIMM3wqY1pW/nXHhhPAYNkevmBg hCyHt+BtyK3xald6men5+0lsH7C56WJsh2/m5tdVq68Lvg0mp+TEFpCV6nOh1WsD+8xt /HbA== X-Forwarded-Encrypted: i=1; AJvYcCXIaLeHzEKF/CJEpKoifbcx/ivSf/+AQDQW+fUsp4sI59OoWZjkTepFdy7cAbVuB29jY/ow+UMJmLwRPgk5QQ9MUSuUgBSd/L02qNdx X-Gm-Message-State: AOJu0YynLN/t8OxHoCdA0eCmvFfHU0P3WiYm9PfG+NPVJlVLTVbdYRXf xfdrkgkhEyYiEIz1sHnfaOxmUPg5Q+T52lBVpXJJDTjxc8ENjZ9BYY+Hpada4GJhsiKYeQAdu3z x0EDzWUuHoi4VX+0JZXVyY4gCRZAvH+tOcZGMAkPDCcs0Hc/nGV7EVHezc411gg== X-Received: by 2002:a05:6214:2b90:b0:6b0:7821:4026 with SMTP id 6a1803df08f44-6b1a6c57871mr20406656d6.52.1718201062929; Wed, 12 Jun 2024 07:04:22 -0700 (PDT) X-Received: by 2002:a05:6214:2b90:b0:6b0:7821:4026 with SMTP id 6a1803df08f44-6b1a6c57871mr20406306d6.52.1718201062563; Wed, 12 Jun 2024 07:04:22 -0700 (PDT) Received: from [192.168.0.4] (ip-109-43-176-68.web.vodafone.de. [109.43.176.68]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b2a1515903sm958436d6.58.2024.06.12.07.04.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jun 2024 07:04:22 -0700 (PDT) Message-ID: <6086ef5e-48e7-40f3-b0a7-ff67b20aeae3@redhat.com> Date: Wed, 12 Jun 2024 16:04:15 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] s390/virtio_ccw: fix config change notifications To: Halil Pasic , Cornelia Huck , Eric Farman , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , linux-s390@vger.kernel.org, virtualization@lists.linux.dev, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Boqiao Fu , Sebastian Mitterle References: <20240611214716.1002781-1-pasic@linux.ibm.com> From: Thomas Huth Content-Language: en-US Autocrypt: addr=thuth@redhat.com; keydata= xsFNBFH7eUwBEACzyOXKU+5Pcs6wNpKzrlJwzRl3VGZt95VCdb+FgoU9g11m7FWcOafrVRwU yYkTm9+7zBUc0sW5AuPGR/dp3pSLX/yFWsA/UB4nJsHqgDvDU7BImSeiTrnpMOTXb7Arw2a2 4CflIyFqjCpfDM4MuTmzTjXq4Uov1giGE9X6viNo1pxyEpd7PanlKNnf4PqEQp06X4IgUacW tSGj6Gcns1bCuHV8OPWLkf4hkRnu8hdL6i60Yxz4E6TqlrpxsfYwLXgEeswPHOA6Mn4Cso9O 0lewVYfFfsmokfAVMKWzOl1Sr0KGI5T9CpmRfAiSHpthhHWnECcJFwl72NTi6kUcUzG4se81 O6n9d/kTj7pzTmBdfwuOZ0YUSqcqs0W+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IcwXdUTLGxc4/Z/VRH1PZSvfQxdxMGmNTGaXVNfdFZjm4fz0mz+OUi6AHC4CZpwnsliGV ODqwX8Y1zic9viSTbKS01ZNp175POyWViUk9qisPZB7ypfSIVSEULrL347qY/hm9ahhqmn17 Ng255syASv3ehvX7iwWDfzXbA0/TVaqwa1YIkec+/8miicV0zMP9siRcYQkyTqSzaTFBBmqD oiT+z+/E59qj/EKfyce3sbC9XLjXv3mHMrq1tKX4G7IJGnS989E/fg6crv6NHae9Ckm7+lSs IQu4bBP2GxiRQ+NV3iV/KU3ebMRzqIC//DCOxzQNFNJAKldPe/bKZMCxEqtVoRkuJtNdp/5a yXFZ6TfE1hGKrDBYAm4vrnZ4CXFSBDllL59cFFOJCkn4Xboj/aVxxJxF30bn In-Reply-To: <20240611214716.1002781-1-pasic@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/06/2024 23.47, Halil Pasic wrote: > Commit e3e9bda38e6d ("s390/virtio_ccw: use DMA handle from DMA API") > broke configuration change notifications for virtio-ccw by putting the > DMA address of *indicatorp directly into ccw->cda disregarding the fact > that if !!(vcdev->is_thinint) then the function > virtio_ccw_register_adapter_ind() will overwrite that ccw->cda value > with the address of the virtio_thinint_area so it can actually set up > the adapter interrupts via CCW_CMD_SET_IND_ADAPTER. Thus we end up > pointing to the wrong object for both CCW_CMD_SET_IND if setting up the > adapter interrupts fails, and for CCW_CMD_SET_CONF_IND regardless > whether it succeeds or fails. > > To fix this, let us save away the dma address of *indicatorp in a local > variable, and copy it to ccw->cda after the "vcdev->is_thinint" branch. > > Reported-by: Boqiao Fu > Reported-by: Sebastian Mitterle > Fixes: e3e9bda38e6d ("s390/virtio_ccw: use DMA handle from DMA API") > Signed-off-by: Halil Pasic > --- > I know that checkpatch.pl complains about a missing 'Closes' tag. > Unfortunately I don't have an appropriate URL at hand. @Sebastian, > @Boqiao: do you have any suggetions? Closes: https://issues.redhat.com/browse/RHEL-39983 ? Anyway, I've tested the patch and it indeed fixes the problem with virtio-balloon and the link state for me: Tested-by: Thomas Huth