From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 798A9C0650F for ; Tue, 30 Jul 2019 09:25:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 563E320679 for ; Tue, 30 Jul 2019 09:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730251AbfG3JZa (ORCPT ); Tue, 30 Jul 2019 05:25:30 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41500 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730193AbfG3JZ3 (ORCPT ); Tue, 30 Jul 2019 05:25:29 -0400 Received: by mail-wr1-f65.google.com with SMTP id c2so61735854wrm.8 for ; Tue, 30 Jul 2019 02:25:28 -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=cUzWE80r0+/Jm/PmpREfM87NZ7CTSmB2MTbi4J4MfgQ=; b=PuXhGz1AOtpwKKLSZiu+2IMiBkH/W7zkmwsEzkN1CPFRhn5XQGQTd6njXGOR8ejBhK KBZ2hColLms/QzT74ihO/HkVRS+cSANziseIZZNk/2M3fcf+Di48ABnYmsvwWbajNued OVFG4VT7cX9s30ELaimT92Um1WF3AIxw4Xd5SjeIuExZQch51dhVXGcTTcpIbpOLzOwv LaTjRnUVrjSoCQ/OGizMfvaqUxf8liN6P2jedL0lY6+ipyoyoRIUL87zMpzAXheEWTVc LxwK7Y4LB9ptFTd4uIGfRiEt/w7k/M/x81E0VxTv5LEqck3vMIkgLeHqY/4s9XZX2c2h k0KQ== X-Gm-Message-State: APjAAAWS7eNv+jINUMf5HBqMcG0px7GtaExQ8/xpolMaQM0ItY30wlah aSUoYd5JBQOrGR4nDBJNBQIPHQvy/u0= X-Google-Smtp-Source: APXvYqz+F0XEhEJWXPXqrEBWvnNsKyL98ooHfR6J44rQZTpHYL5dhBASE4lu+y3QS4SD34KieOnK3Q== X-Received: by 2002:adf:dd8e:: with SMTP id x14mr124398481wrl.344.1564478727541; Tue, 30 Jul 2019 02:25:27 -0700 (PDT) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id o7sm34682654wru.58.2019.07.30.02.25.26 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jul 2019 02:25:27 -0700 (PDT) Subject: Re: [RFC PATCH 03/16] RISC-V: Add initial skeletal KVM support To: Anup Patel , Palmer Dabbelt , Paul Walmsley , Radim K Cc: Daniel Lezcano , Thomas Gleixner , Atish Patra , Alistair Francis , Damien Le Moal , Christoph Hellwig , Anup Patel , "kvm@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" References: <20190729115544.17895-1-anup.patel@wdc.com> <20190729115544.17895-4-anup.patel@wdc.com> From: Paolo Bonzini Message-ID: Date: Tue, 30 Jul 2019 11:25:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190729115544.17895-4-anup.patel@wdc.com> 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 29/07/19 13:56, Anup Patel wrote: > +void kvm_riscv_halt_guest(struct kvm *kvm) > +{ > + int i; > + struct kvm_vcpu *vcpu; > + > + kvm_for_each_vcpu(i, vcpu, kvm) > + vcpu->arch.pause = true; > + kvm_make_all_cpus_request(kvm, KVM_REQ_SLEEP); > +} > + > +void kvm_riscv_resume_guest(struct kvm *kvm) > +{ > + int i; > + struct kvm_vcpu *vcpu; > + > + kvm_for_each_vcpu(i, vcpu, kvm) { > + vcpu->arch.pause = false; > + swake_up_one(kvm_arch_vcpu_wq(vcpu)); > + } Are these unused? (Perhaps I'm just blind :)) Paolo From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CE91C433FF for ; Tue, 30 Jul 2019 09:25:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2394C2089E for ; Tue, 30 Jul 2019 09:25:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="S4emUzvd" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2394C2089E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2ousuP1BZI8tb8ivVCxrCw0BeHVqIL3SyNboY7O+p2M=; b=S4emUzvdImfbVi tu7MHpfIviAMASwdLkHT1GOsNp2nczn8vzIkbXWD+XXoPCtulaJRB7QuMyxcABSrGkS830lRjX6AJ a/Ype4TWDB2728JDivMt8EDTf8CVF14m72OIUoqu2ECk8fACIfw+yDzo1gMoyByepAAW7By6CmwS2 8mQTA1SXcwazHSWntC/BOjJkiQHtUs3MSInylo+6RJpGUTZ0BpNvm6JktgB4R5MIu0YOVsz8Ri+Bz mymIR7XvfzigssazAL/brWC5u5Q8YESbpNq7vM62FoVzYdhAfZq9p5suLWbsZoF14UFj20P8EFFBV vvu++0abJ+/f/OauNJYg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hsONu-0002e7-Tn; Tue, 30 Jul 2019 09:25:30 +0000 Received: from mail-wr1-f65.google.com ([209.85.221.65]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hsONs-0002dd-Q1 for linux-riscv@lists.infradead.org; Tue, 30 Jul 2019 09:25:30 +0000 Received: by mail-wr1-f65.google.com with SMTP id z1so64919390wru.13 for ; Tue, 30 Jul 2019 02:25:28 -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=cUzWE80r0+/Jm/PmpREfM87NZ7CTSmB2MTbi4J4MfgQ=; b=SCEmG6iO0hfeTyQNvv5jHXAPIkE3Wtlc4f/kdCgsT7z9MhJk1YOfcxkT/YnSIAG1h7 WD0dBi9qhZ/KLzcBV9NzXkd/Xlb82SOy1OlQ2i7aRBtzeDGUPpo0y93qznJBarC4dI6c +45miVMXOy4OGn3ZEmt9ZcTTuhFVYs6YKnMbLXi2owQVb++8qEHePgY+eYZVAFhwKP4M 1pFSOskOVi0SKJCuuEuIBV1yxzRXTV177VasL6H3j6nraUMoeffotzcFkcIgReuk3KnE lnTE2Es+siL6Woc3G9fusaL7l9LbPsyXxKf6cwcm8mwiynEQFrTOV0nXP3JUXEabYl9e fzyA== X-Gm-Message-State: APjAAAW3lrT1sS2QIMfMflR7OSAkvCUJfsoO6k6ShqGHoseOs7HAsn2v HYV5LXlPAHglmH1gTr4Vo2XVnA== X-Google-Smtp-Source: APXvYqz+F0XEhEJWXPXqrEBWvnNsKyL98ooHfR6J44rQZTpHYL5dhBASE4lu+y3QS4SD34KieOnK3Q== X-Received: by 2002:adf:dd8e:: with SMTP id x14mr124398481wrl.344.1564478727541; Tue, 30 Jul 2019 02:25:27 -0700 (PDT) Received: from [192.168.10.150] ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id o7sm34682654wru.58.2019.07.30.02.25.26 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jul 2019 02:25:27 -0700 (PDT) Subject: Re: [RFC PATCH 03/16] RISC-V: Add initial skeletal KVM support To: Anup Patel , Palmer Dabbelt , Paul Walmsley , Radim K References: <20190729115544.17895-1-anup.patel@wdc.com> <20190729115544.17895-4-anup.patel@wdc.com> From: Paolo Bonzini Message-ID: Date: Tue, 30 Jul 2019 11:25:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190729115544.17895-4-anup.patel@wdc.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190730_022528_846996_D79CEA84 X-CRM114-Status: UNSURE ( 8.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Damien Le Moal , "kvm@vger.kernel.org" , Anup Patel , Daniel Lezcano , "linux-kernel@vger.kernel.org" , Christoph Hellwig , Atish Patra , Alistair Francis , Thomas Gleixner , "linux-riscv@lists.infradead.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On 29/07/19 13:56, Anup Patel wrote: > +void kvm_riscv_halt_guest(struct kvm *kvm) > +{ > + int i; > + struct kvm_vcpu *vcpu; > + > + kvm_for_each_vcpu(i, vcpu, kvm) > + vcpu->arch.pause = true; > + kvm_make_all_cpus_request(kvm, KVM_REQ_SLEEP); > +} > + > +void kvm_riscv_resume_guest(struct kvm *kvm) > +{ > + int i; > + struct kvm_vcpu *vcpu; > + > + kvm_for_each_vcpu(i, vcpu, kvm) { > + vcpu->arch.pause = false; > + swake_up_one(kvm_arch_vcpu_wq(vcpu)); > + } Are these unused? (Perhaps I'm just blind :)) Paolo _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv