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 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A110C77B73 for ; Thu, 20 Apr 2023 21:14:38 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppbbT-0004WR-S2; Thu, 20 Apr 2023 17:14:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppbbT-0004WF-1S for qemu-devel@nongnu.org; Thu, 20 Apr 2023 17:14:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ppbbR-0002HT-2h for qemu-devel@nongnu.org; Thu, 20 Apr 2023 17:14:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682025244; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=TITUkxebwiJuAbGKFdlEzP2n/AtBTaCU/55gDOlx8aY=; b=Ts+9P9NL5La7HlHy4fKyLNpx6jLIyjMpmoZ6jqU/im44gUZqIhfa0QX1pCSXA8yiy5WsWr LRIaK6Pj79ycbAKO9v0l4fLKngiBc1/mtoXDKIF/9YDljPEFnWIOBwy3VLj51UrbxPAwVk IoTUctZ7K5geGX0/Z7bWPgeznVlBUU8= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-_Yw8PpXdPrafr88M1JtLRw-1; Thu, 20 Apr 2023 17:13:53 -0400 X-MC-Unique: _Yw8PpXdPrafr88M1JtLRw-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-2f479aeddc4so593702f8f.2 for ; Thu, 20 Apr 2023 14:13:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682025232; x=1684617232; h=mime-version:message-id:date:reply-to:user-agent:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TITUkxebwiJuAbGKFdlEzP2n/AtBTaCU/55gDOlx8aY=; b=CpL0g/2BnrJsrrCcQeqSph5ZOfyCZ4Crt0cEpLLr6YANfZ0jp0LIHsuY5RX52xUHiM urk5Ce9pOtuoyFlm1vhok3Rfp4cWoeXHmcpUKhjHDruyLU25wFW00M4RylZaPgDFOMDA Z3i9rp6Ja7mxA8BKexVhTk2FnEzY21682KY0DG0vYZYDzIjH0LhZkW6USNhj61/bXVDm rukxNgUOwCJqT6TywOQG3LNKoIHpF2lGubEnjTOaZABVbXUOS+jq56pvXzucjM+c5c9q hroFln0BKboX3Szb7SOoP/M8yuGj5A/HeoJSlGDxBaLoNLo01lTS/QkVwpgWRk4Je2++ blVg== X-Gm-Message-State: AAQBX9eVpbYPUv6Gty9qf5houGlnaeCh/AEUeoK97LCEOLCFmTHDLiiz MC0t/9vnxSiT0nfPmMGkGUPYTFLFbnTNqEPXFxNbo8DNzkGZe/xYE1j9VmTVAjpJVCKkQh8Xcbj Fw9TvPx/aByyDKRc= X-Received: by 2002:a5d:4a45:0:b0:2f8:96f5:cb0f with SMTP id v5-20020a5d4a45000000b002f896f5cb0fmr2142520wrs.23.1682025232169; Thu, 20 Apr 2023 14:13:52 -0700 (PDT) X-Google-Smtp-Source: AKy350YwSeR6KcnjZqLOtSufdH6Pgme7Ug5YJXLqbwrso51UHVCHh5Yyvi1HrXW25wxyzUQwxrhmjw== X-Received: by 2002:a5d:4a45:0:b0:2f8:96f5:cb0f with SMTP id v5-20020a5d4a45000000b002f896f5cb0fmr2142512wrs.23.1682025231946; Thu, 20 Apr 2023 14:13:51 -0700 (PDT) Received: from redhat.com (static-214-39-62-95.ipcom.comunitel.net. [95.62.39.214]) by smtp.gmail.com with ESMTPSA id z10-20020a5d654a000000b002f22c44e974sm2855130wrv.102.2023.04.20.14.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 14:13:51 -0700 (PDT) From: Juan Quintela To: Lukas Straub Cc: qemu-devel , Peter Xu , Thomas Huth , Laurent Vivier , Paolo Bonzini Subject: Re: [PATCH v2 03/13] ram.c: Dont change param->block in the compress thread In-Reply-To: (Lukas Straub's message of "Thu, 20 Apr 2023 11:47:59 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Date: Thu, 20 Apr 2023 23:13:50 +0200 Message-ID: <87wn26tfxt.fsf@secure.mitica> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=170.10.129.124; envelope-from=quintela@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: quintela@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Lukas Straub wrote: > Instead introduce a extra parameter to trigger the compress thread. > Now, when the compress thread is done, we know what RAMBlock and > offset it did compress. > > This will be used in the next commits to move save_page_header() > out of compress code. > > Signed-off-by: Lukas Straub Reviewed-by: Juan Quintela Much better, thanks.