Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp14604ybx; Mon, 4 Nov 2019 15:01:27 -0800 (PST) X-Google-Smtp-Source: APXvYqxaU9xMk4qh13lzfAUKthILUD+gNYYR3IZhgxiMAttFPcv2Y8XAZRNKyuWtmFZPBEcZFKeO X-Received: by 2002:a50:9f65:: with SMTP id b92mr32455456edf.63.1572908487134; Mon, 04 Nov 2019 15:01:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572908487; cv=none; d=google.com; s=arc-20160816; b=qdHbn6O/n7USB10uzO4lqyxiOjYu32KEXmc76aMh6Twg1yRj/I9vRsODTIjgeV0/zH YxzepM31NpYBFbqLE5eUM0dy3UKBL3j3YonDW+ziwnYSV4DXFdGmuh3xpYXku2asJ+Sg 2mL6JqUn+EnxmV5ODN4xdhETmo0KbqT2q7AiYtI/csA7hbLA4kkpQjcn7EK5Uq87ZMZB nKXHTHAsp5d95HrT7EQr/aSk0RM1dt8VI5qeUk7pQ08cTI7Lnd1dvfK0lIAklxqFlq4I lEM24zC8n0b2X7hrbtYY8zGoEYk5zC92nCrHi2e4+zXEKfI2/XiYo5IxOfBekEyl3Ev6 XY8A== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N9AzTCz7VYWqu+O1g8R1BaaHUGHR9Ucr0dBlgPM9xNc=; b=ot5+koRh3pBRNqW2HsZMHUMdQeCW+JjWMAr2kC0KffWp/NepcygJXzF989QW3gY5QS o4jkCswjQiqq5ECRSRNLmTkGuNxceiDIEg8Iddw9WCGO37TE+K/UyII+X4VXBuD6xNvc XnZGxcIO7Co/1VgeTbUU1fJXppsbtRAnBxi7At8CjWfGaWmnDjzZYr+AkToHxySgUpay koHNRDNbrIgCSlgx0ouVsKsnlRTqEPItYFDc+Y+fu3GLWROGNRJBVNalcv28CYg9Artj ZP20jcbYapQIvXUWNo/x/nQgaBhjXSP1WWbcsWuivxgZtJE5bgLk6AjsDMlwij1mvvt+ D9+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ciGNdCr5; 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=pass (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 l5si8880651edb.341.2019.11.04.15.00.57; Mon, 04 Nov 2019 15:01:27 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ciGNdCr5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730076AbfKDXAO (ORCPT + 99 others); Mon, 4 Nov 2019 18:00:14 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:33854 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730009AbfKDXAM (ORCPT ); Mon, 4 Nov 2019 18:00:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572908412; 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; bh=N9AzTCz7VYWqu+O1g8R1BaaHUGHR9Ucr0dBlgPM9xNc=; b=ciGNdCr5GTued1ftmHd5XPGuG2Mn9FNAEAMiulF+1+BoftrC8/9pcMSe5ZaQcq+3bmAUFD gzQeeP0ntZfADrrfbnBrCRBYcmdSFKlprLtjCYa9mwp9+K7aUyLGGO8tg/AD1qXojmJbhv vwmvRnwJw0ZvDNMKOmxtxTWe8XlMqKE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-eiOOitc7MEmU_eGNTeYP_g-1; Mon, 04 Nov 2019 18:00:10 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ADA66107ACC3; Mon, 4 Nov 2019 23:00:08 +0000 (UTC) Received: from mail (ovpn-121-157.rdu2.redhat.com [10.10.121.157]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C9224600C6; Mon, 4 Nov 2019 23:00:02 +0000 (UTC) From: Andrea Arcangeli To: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Paolo Bonzini , Vitaly Kuznetsov , Sean Christopherson Subject: [PATCH 03/13] kvm: monolithic: fixup x86-32 build Date: Mon, 4 Nov 2019 17:59:51 -0500 Message-Id: <20191104230001.27774-4-aarcange@redhat.com> In-Reply-To: <20191104230001.27774-1-aarcange@redhat.com> References: <20191104230001.27774-1-aarcange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: eiOOitc7MEmU_eGNTeYP_g-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kvm_x86_set_hv_timer and kvm_x86_cancel_hv_timer needs to be defined to succeed the 32bit kernel build, but they can't be called. Signed-off-by: Andrea Arcangeli --- arch/x86/kvm/vmx/vmx.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index bd17ad61f7e3..1a58ae38c8f2 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -7195,6 +7195,17 @@ void kvm_x86_cancel_hv_timer(struct kvm_vcpu *vcpu) { =09to_vmx(vcpu)->hv_deadline_tsc =3D -1; } +#else +int kvm_x86_set_hv_timer(struct kvm_vcpu *vcpu, u64 guest_deadline_tsc, +=09=09=09 bool *expired) +{ +=09BUG(); +} + +void kvm_x86_cancel_hv_timer(struct kvm_vcpu *vcpu) +{ +=09BUG(); +} #endif =20 void kvm_x86_sched_in(struct kvm_vcpu *vcpu, int cpu)