Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp876634ybi; Fri, 24 May 2019 12:59:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYPxvn+WGAG9ehhI6J/uAG/reXQM3ZqtR7FetwSGaHqLb5Jz3BAL9WT/GatweIAa3on7vZ X-Received: by 2002:a63:4f16:: with SMTP id d22mr64959174pgb.148.1558727943097; Fri, 24 May 2019 12:59:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558727943; cv=none; d=google.com; s=arc-20160816; b=KXAk8sBWiYC3jXJ+VX3SINnbG53ACtfBfr7rBCNCwfLsV5YEk0oq4rJDcfn+V8cMgV BUEPoZnt9890nyw/10ofE+gtKrwSMktlfEwQCglRxEF+3tZ1r/j1Rdl13EpRdX7VgPtq 9G11M4EqsADb7dERIU31jW8Px/TAlx9BoE3SDaR+GG7J58j6Ayasczqv16QMvkzIspze 0VyF+kV/ECBvdpvlfdQM6Kd2xcZ8Y9fCbMnrcP+3FSWM60wbcFlCPVAavZfRT2j5V6tF eczFT1Q6krm58Wt0AVnkg2TRCRcJHGvw2GljdDu+QVwACIekGrEgfQYmFZ8IYlIX5sTl ws7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0GEOz5AbCK75BUSbgRcvRqBVy9AZ5+iXTj72Y9RfMlA=; b=hajphCYrl1OiJ4xVrgv3iDxX09jTTo9F4J5jyIaMMB8xbyOJLLSXQeVc6ov4byvGye 0Zg5AJiYx42Wr7kPnf0sXMhTeumL7giIbjIQdCQzs3r89xls/+nXI359Ljl4qAjbcQZi 1LoytlfrdyTyRLpik/6gCcFvfM3X8jnMm2ZcRLsKY0azw5W2LMFGiYWAFPG3wo1AIGTa 9bY7K36d5TpqOqKz9Ym6T6Phl9p4CDbPUqfVTsAhCDw48WgApVPuY3C6xViyCw005uXE ntFS/qqGsK9gCQqsC7yIbjyRonad/mflkMYMzIeoT54SddYva6IM4uZ7AdPNlQWLsaoQ aZeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si6008505pfo.66.2019.05.24.12.58.47; Fri, 24 May 2019 12:59:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391811AbfEXT4S (ORCPT + 99 others); Fri, 24 May 2019 15:56:18 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38778 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391455AbfEXT4S (ORCPT ); Fri, 24 May 2019 15:56:18 -0400 Received: by mail-wm1-f67.google.com with SMTP id t5so10317676wmh.3 for ; Fri, 24 May 2019 12:56:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0GEOz5AbCK75BUSbgRcvRqBVy9AZ5+iXTj72Y9RfMlA=; b=Z3Nh2lMozSh9XhwlKOgzxWTt3aS739eU0DgkvNhRS8i9ve5wWXterJ1k2wXug2d9Kh IWoQnOlNEx1Xu89ptj+2FpKdNHoj+ZvHJpGDx/frXShhnMg4NuhEk1/gRg775d9c8EdT +ByTD+uLpWRNfo2HjedTryTBosqpo5MRvoMdEtiNViHzt/c58wc9N+YDqtZaIunJ606r KigWlyquoNt0+qh+oFvq6NOSr3arb/VDtgmv5ikbGJnoD9h4sAMya1UBYkYO9Nozj/M+ zEa4KYTMDks+HC2ycRLx4M+CSoHujsWpFdd0oo4l8BvjknAt25HZWMhAGelLFp9akOXI /4sA== X-Gm-Message-State: APjAAAVw9GMfecOVMbaRQ7EsfqNEuv50igIgJ6eue4XdGZhxWaIXJbVR pG9M9jNe46AzlvpabPxPTgjxboOc0JU= X-Received: by 2002:a1c:9e92:: with SMTP id h140mr1065764wme.82.1558727776217; Fri, 24 May 2019 12:56:16 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:4d53:18d:3ffd:370? ([2001:b07:6468:f312:4d53:18d:3ffd:370]) by smtp.gmail.com with ESMTPSA id l18sm3646158wrv.38.2019.05.24.12.56.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 12:56:15 -0700 (PDT) Subject: Re: [PATCH] kvm: fix compilation on s390 To: Christian Borntraeger , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: mkubecek@suse.cz References: <1558725957-22998-1-git-send-email-pbonzini@redhat.com> From: Paolo Bonzini Message-ID: <3d1b18d4-4d8d-3738-aa49-34ea28c02c84@redhat.com> Date: Fri, 24 May 2019 21:56:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24/05/19 21:54, Christian Borntraeger wrote: > On which kernel tree is this broken? kvm/queue has > > #ifdef CONFIG_ZONE_DEVICE > around that. It's a better version of that patch in kvm/queue, which I had committed just to temporarily unbreak you guys. Paolo > On 24.05.19 21:25, Paolo Bonzini wrote: >> s390 does not have memremap, even though in this particular case it >> would be useful. >> >> Signed-off-by: Paolo Bonzini >> --- >> virt/kvm/kvm_main.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c >> index 1fadfb9cf36e..134ec0283a8a 100644 >> --- a/virt/kvm/kvm_main.c >> +++ b/virt/kvm/kvm_main.c >> @@ -1761,8 +1761,10 @@ static int __kvm_map_gfn(struct kvm_memory_slot *slot, gfn_t gfn, >> if (pfn_valid(pfn)) { >> page = pfn_to_page(pfn); >> hva = kmap(page); >> +#ifdef CONFIG_HAS_IOMEM >> } else { >> hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB); >> +#endif >> } >> >> if (!hva) >> >