Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp131727pxb; Thu, 30 Sep 2021 02:44:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxn71bZTMGafsYbXsnm8kZNZVgpB1mDNnMoWC9CRSm+9eA/iQZsi52VWKbpTe4FZNcKiqTB X-Received: by 2002:a05:6a00:1944:b0:438:d002:6e35 with SMTP id s4-20020a056a00194400b00438d0026e35mr3337230pfk.20.1632995040503; Thu, 30 Sep 2021 02:44:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632995040; cv=none; d=google.com; s=arc-20160816; b=gwX91oMRQ/+IIuL0NaqDCjVSrlv3WZ8s3tUX6xhO4VKi/oz1UkwQaR6YGqRy6QH6Br 3d7jIsuHhMd/v9Ab7VVytMud4hTPDB1nHGypTxOVZNfj3da1ASDcaer19q8Jaji72ucS NCKNog7hqdHotQmKDwYA354ERds3F8Q/DoRJrf0w9mEP5s1MV5huZ6bCHCrgZ1vu5Aef o1HajAPZ+kLpCn0RSRg+nwNY4rYcA+sclL4y03f1K1EwlWTEdvruSFEPWJdi7WewOPG5 kI1FILhHj3Pq2Om2yUExcDkh8HQZndk1GQraYggr7hYa41mlaWO3MIiQHxKfJCp6Ulz8 axJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=2T7u2DmUU4nQYY18kGg347XMFB9wFfvvsDXAY3ptTZU=; b=ytCJDIs00up4SlwuqIjKjdYJBBRl/z8qwggM34vncNCYg9JivymND0Qmn1FKueTL80 gaF0qRg9r4HRto8EVS9Rx3EgpK2yg82CdEti3dMjSm+LAvP5NeoIRta49gqGd7UX7E2w 7b8hsHL4aQStJPjXTIN9ryDSIEotaQftl/p3mw+/gB37BR5MicdsYTzwc5fYEIH+kRPG YtdPRsYVmDda5S+iFy0vpjGFSGtfvCFMdzS10+G49RYlK/H2Fxc626ulAik6zPiu9bqD jfwkQ204gZLDv2tiDfyNE5XDpT8boAbmLQBSVqlXv5YIuFThIzoLer1/pUP54Yh0BRhV a2Kw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si2849068pgm.116.2021.09.30.02.43.47; Thu, 30 Sep 2021 02:44:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349500AbhI3Jmr (ORCPT + 99 others); Thu, 30 Sep 2021 05:42:47 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:24205 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233877AbhI3Jmq (ORCPT ); Thu, 30 Sep 2021 05:42:46 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4HKpBK4pYVz8tXd; Thu, 30 Sep 2021 17:40:09 +0800 (CST) Received: from dggema764-chm.china.huawei.com (10.1.198.206) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.8; Thu, 30 Sep 2021 17:41:02 +0800 Received: from [10.174.185.179] (10.174.185.179) by dggema764-chm.china.huawei.com (10.1.198.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.8; Thu, 30 Sep 2021 17:41:01 +0800 Subject: Re: [PATCH v7 15/15] KVM: arm64: selftests: arch_timer: Support vCPU migration To: Raghavendra Rao Ananta CC: Paolo Bonzini , Marc Zyngier , "Andrew Jones" , James Morse , "Alexandru Elisei" , Suzuki K Poulose , , Catalin Marinas , Peter Shier , , Will Deacon , , References: <20210914223114.435273-1-rananta@google.com> <20210914223114.435273-16-rananta@google.com> From: Zenghui Yu Message-ID: <61419b8f-4da9-955e-b8e3-1d401d91ab1a@huawei.com> Date: Thu, 30 Sep 2021 17:41:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20210914223114.435273-16-rananta@google.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.185.179] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggema764-chm.china.huawei.com (10.1.198.206) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/9/15 6:31, Raghavendra Rao Ananta wrote: > static void test_run(struct kvm_vm *vm) > { > int i, ret; > + pthread_t pt_vcpu_migration; > + > + pthread_mutex_init(&vcpu_done_map_lock, NULL); > + vcpu_done_map = bitmap_alloc(test_args.nr_vcpus); This one fails to build. aarch64/arch_timer.c: In function 'test_run': aarch64/arch_timer.c:321:18: warning: implicit declaration of function 'bitmap_alloc'; did you mean 'bitmap_zalloc'? [-Wimplicit-function-declaration] vcpu_done_map = bitmap_alloc(test_args.nr_vcpus); ^~~~~~~~~~~~ bitmap_zalloc aarch64/arch_timer.c:321:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] vcpu_done_map = bitmap_alloc(test_args.nr_vcpus); ^