Message ID | 1516112253-14480-50-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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CCwDqfFC"; dkim-atps=neutral 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 3zLYn26RGhz9s7v for <incoming@patchwork.ozlabs.org>; Wed, 17 Jan 2018 02:20:06 +1100 (AEDT) Received: from localhost ([::1]:40112 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 1ebT1w-0004FO-MX for incoming@patchwork.ozlabs.org; Tue, 16 Jan 2018 10:20:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1ebS4k-0003kx-KO for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1ebS4h-0005YH-A5 for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:54 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:45382) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1ebS4h-0005X7-3c for qemu-devel@nongnu.org; Tue, 16 Jan 2018 09:18:51 -0500 Received: by mail-wm0-x243.google.com with SMTP id i186so8661858wmi.4 for <qemu-devel@nongnu.org>; Tue, 16 Jan 2018 06:18:51 -0800 (PST) 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=C8+zokiy5iXF1tSoWLEySm0x0c0xHd/vJQau14WkiL0=; b=CCwDqfFCPE0i9nZXO4lQwn/zzULo7hViuiJtB/MP9tZ46v1SAL2PuWZY2MefgF1SVo o9OsB6CDipl8n80XoQViRxwO0mh/CjKZW6QmWFnBcgRChkELUrgyJ9Nee+Pytzw8KsGd l540bZv5Vvy6WMZ9VMk8jxy/+s9sntAsvC7PYHQVnRZhHH7EGW1+X4KVf0ALXYzGs7ei aHV3NSbaBRVkGORdQdMD+0cJ3iKzTNjcF9VCIAaGTWk40yV99kCbZWwxw3uxt8QWdxpN 8UdYVw7Evfp42DY1g7VbpiP+z0XHk1d4X8GDujXuwXt9yz9VrDkpVMlRizX7sU4b5gev HqjA== 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=C8+zokiy5iXF1tSoWLEySm0x0c0xHd/vJQau14WkiL0=; b=tXH0YMFp6/voqcF45L4X3A0B/6zzLZd5dIQZfPiIB9J5OUq3J6I7tx+nXMkSDg/uBx lNlw1jtQafCKn1Bj19BDNQ1QxyE8liNi/nzllDS/bZgE5oBmvYlvqJ8VYI2NMmjxg83q d2coLWfpAq2IES2++uWVjOfTg3cTsj6Tcj8azFiE/npliznCb3iWoFBUb6L5cNHJT8ya KSpKDw5XPLILsgDsLm43ojAqP7scUShccFI05O/PaXgkH/+nkEikdiU3ZkqZqqK9Z72R Y+CwY7xrQ/05iJ8gC84qLwUGiV/P86ruLo46rV6hhAPZorU0oBXyCQZaPemKpuC0t6Zk xq6g== X-Gm-Message-State: AKwxytctyguePTV9XlYpx4PofcgYSdzYSOPDLco0AXpZZ5397PsZo7Us nYhS8CiEf27ooCpy4yBNaplmGjYy X-Google-Smtp-Source: ACJfBou6WPL5VRozqUawuST1QpfijHy1myNyOw3eTM64Q18HD/s+QFYi7OYQe9zB7pz+tP7pa8ysOA== X-Received: by 10.28.69.66 with SMTP id s63mr13035767wma.47.1516112329783; Tue, 16 Jan 2018 06:18:49 -0800 (PST) Received: from 640k.lan (dynamic-adsl-78-12-229-84.clienti.tiscali.it. [78.12.229.84]) by smtp.gmail.com with ESMTPSA id u10sm1537758wrg.6.2018.01.16.06.18.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 06:18:49 -0800 (PST) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Tue, 16 Jan 2018 15:17:31 +0100 Message-Id: <1516112253-14480-50-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1516112253-14480-1-git-send-email-pbonzini@redhat.com> References: <1516112253-14480-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:400c:c09::243 Subject: [Qemu-devel] [PULL 49/51] cpu: flush TB cache when loading VMState 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: Maria Klimushenkova <maria.klimushenkova@ispras.ru>, Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru> 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/51] scsi-generic: Add share-rw option
|
expand
|
diff --git a/exec.c b/exec.c index 9f4f450..d28fc0c 100644 --- a/exec.c +++ b/exec.c @@ -623,6 +623,13 @@ static int cpu_common_post_load(void *opaque, int version_id) cpu->interrupt_request &= ~0x01; tlb_flush(cpu); + /* loadvm has just updated the content of RAM, bypassing the + * usual mechanisms that ensure we flush TBs for writes to + * memory we've translated code from. So we must flush all TBs, + * which will now be stale. + */ + tb_flush(cpu); + return 0; }