Message ID | 1539894735-14232-30-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eYzpghD5"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42bhmQ0c0Tz9sBj for <incoming@patchwork.ozlabs.org>; Fri, 19 Oct 2018 08:20:54 +1100 (AEDT) Received: from localhost ([::1]:44772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1gDFit-0007TD-56 for incoming@patchwork.ozlabs.org; Thu, 18 Oct 2018 17:20:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1gDEyU-0007Y4-M3 for qemu-devel@nongnu.org; Thu, 18 Oct 2018 16:32:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1gDEyQ-0006U8-HY for qemu-devel@nongnu.org; Thu, 18 Oct 2018 16:32:54 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:41685) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1gDEyQ-0006Tg-AM for qemu-devel@nongnu.org; Thu, 18 Oct 2018 16:32:50 -0400 Received: by mail-wr1-x443.google.com with SMTP id q7-v6so7266343wrr.8 for <qemu-devel@nongnu.org>; Thu, 18 Oct 2018 13:32:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Crc8hXh6fuKllNJ5wmjW4kipXdhzcje7NjwDCMhKnrI=; b=eYzpghD5+WI2Y7RXSCgh6PMk9HaZqHygdS8IvG9aEXIU+yQ0sha7xclDeNLV6Y5Em8 TfTnEDqzdO3UeQ3hRF2EeRcAMDLbAcdMDz30jXCx23dUTUtw1OjMcaMOFkyQZ5kR/lKX CFYI3J8X1a4Iu9IJPIe4ccLOkxnC+lhML+QRRmc4XNMZ7LEj9YPORSvSiaRvLd/LjPgr c8uKNRE8shjZoUHJF6Sh0ZtYwTxKesRwYDDR2fdk2DozehIHoqJMRhc7yjOtdPkylY+X TY/lVtkqdBBpPqg2jTikhPBchehGiHs/RoBljp/flqGnDPdC12t+ghyftTqiPQBghazW Ns1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=Crc8hXh6fuKllNJ5wmjW4kipXdhzcje7NjwDCMhKnrI=; b=kCCQTfQWJcnSHFIe7B7pDfFQHG74AowqWpp6PfKV6yIYeqN3XT0GNU20Nqkf+2pkh1 I2GKxoVKw7vnojcbZuzdkFDEOCBSLnT30mNnd5wnr+jQVM3jLMIy+DmVbN6rlqvkvusc 35haYte++yhGV+6RfFceB/zRp1cYk0fASfcsJJMkY66Yr9rF048b9mU20HSyk2WdHctb NdmLEcEVT21n2Iu7pUJSFKgj3YZM/Pt8NuU8SyGNwEFZedD5CbVZJ6MbiggpGFMGzdPq evjwbLll6gWKbHwzHF8+jhfTDe4c67erWNI9Bumxj2c+lwkOgWj5xsfPXrCax/LSOQ6g KR3w== X-Gm-Message-State: ABuFfog6r720ROX8JdqOn3jj59aqq0NBmYRcBMwf6V1CMyDtES1yBpA/ ELicB8tJViTPQbObcXDcs7i0V40x X-Google-Smtp-Source: ACcGV60VWFyBckaedG3mpGesH6ICmOrBeZBX10f+s/5PiG3SminGscNhnf+at82BPwjHZROaD0XOlg== X-Received: by 2002:adf:fec9:: with SMTP id q9-v6mr27754908wrs.164.1539894769168; Thu, 18 Oct 2018 13:32:49 -0700 (PDT) Received: from 640k.lan (dynamic-adsl-78-12-231-174.clienti.tiscali.it. [78.12.231.174]) by smtp.gmail.com with ESMTPSA id a12-v6sm14270952wrr.71.2018.10.18.13.32.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 13:32:48 -0700 (PDT) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 22:31:56 +0200 Message-Id: <1539894735-14232-30-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1539894735-14232-1-git-send-email-pbonzini@redhat.com> References: <1539894735-14232-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::443 Subject: [Qemu-devel] [PULL 29/48] hyperv: address HvSintRoute by X86CPU pointer X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: Roman Kagan <rkagan@virtuozzo.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
[PULL,01/48] es1370: more fixes for ADC_FRAMEADR and ADC_FRAMECNT
|
expand
|
diff --git a/target/i386/hyperv.c b/target/i386/hyperv.c index 11fd1ad..0ce8a7a 100644 --- a/target/i386/hyperv.c +++ b/target/i386/hyperv.c @@ -18,7 +18,7 @@ struct HvSintRoute { uint32_t sint; - uint32_t vp_index; + X86CPU *cpu; int gsi; EventNotifier sint_set_notifier; EventNotifier sint_ack_notifier; @@ -97,6 +97,12 @@ HvSintRoute *kvm_hv_sint_route_create(uint32_t vp_index, uint32_t sint, HvSintRoute *sint_route; EventNotifier *ack_notifier; int r, gsi; + X86CPU *cpu; + + cpu = hyperv_find_vcpu(vp_index); + if (!cpu) { + return NULL; + } sint_route = g_new0(HvSintRoute, 1); r = event_notifier_init(&sint_route->sint_set_notifier, false); @@ -128,7 +134,7 @@ HvSintRoute *kvm_hv_sint_route_create(uint32_t vp_index, uint32_t sint, sint_route->gsi = gsi; sint_route->sint_ack_clb = sint_ack_clb; sint_route->sint_ack_clb_data = sint_ack_clb_data; - sint_route->vp_index = vp_index; + sint_route->cpu = cpu; sint_route->sint = sint; return sint_route;