Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp108747yba; Thu, 25 Apr 2019 19:05:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKxiKJRiKG0BnqEOdF0FWdDTpPEJ1VoJwAr2pdSuF4YRrvtHiy+3F4GQ6EZoSemRix15G9 X-Received: by 2002:a62:a515:: with SMTP id v21mr44763155pfm.41.1556244316140; Thu, 25 Apr 2019 19:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556244316; cv=none; d=google.com; s=arc-20160816; b=iK2U0F8artpuoaE+1XY8eNzAUZce3lpzVd4RQmOhUSOZcmzAtWAQu90JajRv/Jn5ur OO8oJolHk6FZtHXK1Dh1OmAdhBCG/+0ScaHFeCDLbMpm42H7xg7hWKsAcwgau86h7dNb NtPbSDlzTg3riBL/1QS3qmmimcZZf3ViVkkKl9Zmh36IEqGrWFhBuLXTJddoyzY3BkjX p4zKsvYABi4aRg+C3+86uYmhqrZsOsbZxQm4iUlByiOtbVS5elB+m6qoS+9olkpCO4hZ unkutAi8nEhZkYI/KwTn0uNraBRQHlE921Je3AU1U2bR/O3uazxhK+lg6xvqXxK3XCat mgFQ== 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=Oci9eVa/qRgSCyod3Oi+jUXB+JoBcaZ94Yaxua/10zU=; b=pfA1DQys5aZV5R1AXM0ErqJrBEG87mhd1iSw+/XGt2QQr/h4CfBZ1FtRud8v+xYtBm Vw8n9fvDs0YDmsf27kUZNBD1oIW1hzV/stCNvBGvHEj6+rVI6mZVaZBRG9TYinafGuaK LEIWrJaOWhWfaQ64sEaF8PGW7FJE1gi3B7dlv5VSC93UDZ2CyA7ZDBtfgYU/QmzfLDFz 1G+ZNHTtaHf9ukFIiNZ4DAtTiqADa3SEHXFem4fBGk0iaWzuTv9QFyho2EBBV53zLUst PnN6bcDolRqIbCL8dVKh3EyQgYBLhq5Oyoc9zssM+q9FHsiQvjdyRAprSXaxWd4/tua+ K4mA== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si22478545plb.234.2019.04.25.19.05.01; Thu, 25 Apr 2019 19:05:16 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbfDZBtW (ORCPT + 99 others); Thu, 25 Apr 2019 21:49:22 -0400 Received: from mga18.intel.com ([134.134.136.126]:22462 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726402AbfDZBtW (ORCPT ); Thu, 25 Apr 2019 21:49:22 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 18:49:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,395,1549958400"; d="scan'208";a="152463897" Received: from genxtest-ykzhao.sh.intel.com (HELO [10.239.143.71]) ([10.239.143.71]) by FMSMGA003.fm.intel.com with ESMTP; 25 Apr 2019 18:49:19 -0700 Subject: Re: [RFC PATCH v5 3/4] x86/acrn: Use HYPERVISOR_CALLBACK_VECTOR for ACRN guest upcall vector To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, bp@alien8.de, Jason Chen CJ References: <1556067260-9128-1-git-send-email-yakui.zhao@intel.com> <1556067260-9128-4-git-send-email-yakui.zhao@intel.com> <20190425071700.GB57256@gmail.com> <20190425194527.GA52659@gmail.com> From: "Zhao, Yakui" Message-ID: <12c00f28-a1a8-8642-6912-ec9b706b589e@intel.com> Date: Fri, 26 Apr 2019 09:46:50 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20190425194527.GA52659@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019年04月26日 03:45, Ingo Molnar wrote: > > * Zhao, Yakui wrote: > >>>> + alloc_intr_gate(HYPERVISOR_CALLBACK_VECTOR, >>>> + acrn_hv_callback_vector); >>> >>> Why is this on two lines, not a single line? >> >> At first it used the long function name for acrn_hv_callback_vector. >> As it exceeds 80 columns, it is split into two lines. > > No, it doesn't exceed 80 columns - the last character of that line is on > column 71. Thanks for the helps. It will be fixed. > >>> Does the hypervisor model the APIC EOI command, i.e. does it require the >>> APIC to be acked? I.e. would not acking the APIC create an IRQ storm? >> >> The hypervisor requires that the APIC EOI should be acked. If the EOI APIC >> is not acked, the APIC ISR bit for the HYPERVISOR_CALLBACK_VECTOR will not >> be cleared and then it will block the interrupt whose vector is lower than >> HYPERVISOR_CALLBACK_VECTOR. > > Ok! > I will add some comments for calling entering_ack_irq in acrn_hv_callback_handler. Is this ok to you? > Thanks, > > Ingo >