From patchwork Thu Oct 20 06:59:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 684662 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t0C2q4Nnrz9ryn for ; Fri, 21 Oct 2016 02:12:03 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ick0KnRh; dkim-atps=neutral Received: from localhost ([::1]:55448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxF0i-00084G-2B for incoming@patchwork.ozlabs.org; Thu, 20 Oct 2016 11:12:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bx7KE-0007jJ-6Z for qemu-devel@nongnu.org; Thu, 20 Oct 2016 02:59:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bx7KD-0002ZX-4S for qemu-devel@nongnu.org; Thu, 20 Oct 2016 02:59:38 -0400 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]:35034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bx7KC-0002Z6-Uz; Thu, 20 Oct 2016 02:59:37 -0400 Received: by mail-pf0-x243.google.com with SMTP id s8so4676187pfj.2; Wed, 19 Oct 2016 23:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S+ktFnlhA6rs6B+RIJPX/Ut3yTWsUHwts0ilYQWvrAc=; b=ick0KnRhQpJDgvXMt0zHmn8cxANkywEoLGFmEyAgIBtmxsY6ffshBdAlq2aq0WU/ho 0X1t0aoQrfm/W2V6B/WXmpB1Vl5uI51FEKR3r3uLxYELNgaQiyqs+QLcOl6rrudh8Q3i S1h3SUgeEckYdQQ6MUKLQ8u8Ls3vd9Ymu/PhudtyAhhxXQnnRSVnKEF69zubv61TvCd/ T1rm1FN9nr0zbfs+xcgJQDEQ+IyrQxk9DXn2UO8ghkEj0Gtw9Odb8ja2ju4GUOCrW5Yo vAw5r3awTydnrEQacD5KVvkS8z7BZ7WKPneoiApcO0F104WAQ7JPThOTv8Mk6aHIhB+y YGjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=S+ktFnlhA6rs6B+RIJPX/Ut3yTWsUHwts0ilYQWvrAc=; b=O+1ljRxdN8NHBI0RmK9ZqdPusDj/YrS/Qx4PRRSgd5EutfyEnB/0MQL++jnaC6BEpY ZsZKigcyCGPHBPWuKgMlO9HDibaqM4FJbxaGy128R0iNB4XFVJDWbpANWHKWe9aZw+dQ rxt9ZQlS3s8m629LjOf40fR9AGGn6NcIpbNKwFkuQILva2NGRs0YvELYFKB4KXOpwQ5h QzAslZVoJ5GHybZE5rLw8XRx0lplIgLtiebbCYLYaocsa/rHTavkukfIKOmXZigOr/iz EufBcB2LopdiIbr0d2yWk/Qt9Z65/FDo6nX36O87HNaKXADxcj77JW8kt4buHOInUv2W 59TQ== X-Gm-Message-State: AA6/9RlkG1sxJcy5yB19mRld8OUtDXAFiQlTJNjCiRkVztgN179qh/OBu9gCPByv6V5F7A== X-Received: by 10.99.2.214 with SMTP id 205mr15405153pgc.1.1476946775937; Wed, 19 Oct 2016 23:59:35 -0700 (PDT) Received: from roar.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id u10sm68754223pau.32.2016.10.19.23.59.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2016 23:59:35 -0700 (PDT) From: Nicholas Piggin To: qemu-devel@nongnu.org Date: Thu, 20 Oct 2016 17:59:11 +1100 Message-Id: <20161020065912.16132-3-npiggin@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161020065912.16132-1-npiggin@gmail.com> References: <20161020065912.16132-1-npiggin@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::243 X-Mailman-Approved-At: Thu, 20 Oct 2016 10:46:21 -0400 Subject: [Qemu-devel] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alexander Graf , Nicholas Piggin , David Gibson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Nicholas Piggin --- target-ppc/excp_helper.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c index 53c4075..477af10 100644 --- a/target-ppc/excp_helper.c +++ b/target-ppc/excp_helper.c @@ -390,9 +390,13 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int excp_model, int excp) /* indicate that we resumed from power save mode */ msr |= 0x10000; new_msr |= ((target_ulong)1 << MSR_ME); + new_msr |= (target_ulong)MSR_HVB; + } else { + /* The ISA specifies the HV bit is set when the hardware interrupt + * is raised, however when hypervisors deliver the exception to + * guests, it should not be set. + */ } - - new_msr |= (target_ulong)MSR_HVB; ail = 0; break; case POWERPC_EXCP_DSEG: /* Data segment exception */