From nobody Fri Oct 18 06:16:39 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=google.com ARC-Seal: i=1; a=rsa-sha256; t=1685053312; cv=none; d=zohomail.com; s=zohoarc; b=HPhatjCeV2HSRFKSGUl0ORgot6I5RzsjFvneZYnrd3hmZToX1Br6d9MZAMr0OirG+TaB2CQ+IkNdGlA7emR/vJaMUJWcoBV3dSrKAL29RxfvfhvyaINJpNWNd0vu9kYzwluugCfKIENU0E7CS/B1MfIxdensyPR7HXOSrGTY/s4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1685053312; h=Content-Type:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dXTJKsxDTe67YZh46ME8kW+SA4qfuw4NaZ0bmQilNWE=; b=EEXqUF969KhVXesI4KmD9iHGZcvmpJFFFz1EdhyhVGlZ/wcGGeDtMJptoefKun/JfFagcYoLzFbsnKPVPVEo6TQIBS8jlPeY+4WeKx++pRQgRYbAKZqqpvDQkNmbdR9mdaFuhudr3d8cVtgh/SLHK6e6ex4GB4eVMzwbq8EIpzE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1685053312902643.0336016307848; Thu, 25 May 2023 15:21:52 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2JJu-00027t-VZ; Thu, 25 May 2023 18:20:31 -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 <3Kt9vZAgKCtEGx8H9yxH3BB381.zB9D19H-01I18ABA3AH.BE3@flex--talumbau.bounces.google.com>) id 1q2JJt-00026C-CQ for qemu-devel@nongnu.org; Thu, 25 May 2023 18:20:29 -0400 Received: from mail-io1-xd4a.google.com ([2607:f8b0:4864:20::d4a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <3Kt9vZAgKCtEGx8H9yxH3BB381.zB9D19H-01I18ABA3AH.BE3@flex--talumbau.bounces.google.com>) id 1q2JJr-0004Sm-Ss for qemu-devel@nongnu.org; Thu, 25 May 2023 18:20:29 -0400 Received: by mail-io1-xd4a.google.com with SMTP id ca18e2360f4ac-76c63aadc10so22417739f.0 for ; Thu, 25 May 2023 15:20:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685053226; x=1687645226; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=dXTJKsxDTe67YZh46ME8kW+SA4qfuw4NaZ0bmQilNWE=; b=UOu2xcjFJYAQuNiI7eLotxMiEeM3EaSyQY01FvDz1ndyblg897FZXJNyFvPS/5/F+O 5Djubuq+huZGzB7g+6pVqUTd1RgUmfs3sexIHtS5HYSZDvhr+HedFKzXsV1fjtbW1P9Z Z1Bw5nHw3pNuZ6QCBjpfd+dLgE3hZYx5F12UVhONpIeN5Qn9PNUuq0wsScyvhIZdQb0a FotNn3cvSfRu6RsIPXHMS/NgislhRtbldTyBX6+cnHiYWJ7YjkpVM4FAF72aPmifPX3+ A28ocO3erReX32C6XmCfnKXxURIYjNSHC69dOQ1/2oFT9lxDttP+nTfGDPYWUeD1FY2S jOdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685053226; x=1687645226; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dXTJKsxDTe67YZh46ME8kW+SA4qfuw4NaZ0bmQilNWE=; b=LYDAR4SRK6d0wyFcJq2BatSXeBIRaaAaPryye7584jy1Jiki3zbPyP/eIEGiJUYmTI 68ZoriwkTavN3SryF2gRnPERym5ODA/EN4XVQrt2hKUp1UD4Xp3OH+w1OwHd6l9OgS20 yP5/RmyI0tUJfjO6YdCDfsUlkhA6N/0FFxSLjIZ5B+ermUNwhtYLRull2E/Gyqc1Itp9 WmbpBpbJdm6ZxBnHbzOZLUaWiEhFNxibKZcd1QVS+Z1FRODKO6Dd2TVkZ3TqxEZXyLbR ftzZSwgLpGEtUxyL5inuTdYMV3lUb8zeKreryJqwU6Bsm+kkMXFAlcw5szECJDCEl4Gp vrqw== X-Gm-Message-State: AC+VfDyINCt36j9AhMbpFy9KWNOJdz/MMhtvPqpGc7HAZ7e+bSr9/IOL RFj1/43euq2HzJCNwHhqnLOvGxiti/3FoYxI6EJtiDyhv2gqpOikI/PoUiko9hfJOWKuNHW+dxJ MJeLsrgMaTJ8ldmYbG6klOucw13huaIic0II3NMOGTnnDxBGA5WeHLb+WzZC+shH/fQ== X-Google-Smtp-Source: ACHHUZ4E1/FJae49eWgTywoEBwfGC/2mWQAU+7bv29m97Dhc3Q88IAbO6poIfSPDN5nYV5V7sVkmOvDNhGqXyg== X-Received: from talumbau.c.googlers.com ([fda3:e722:ac3:cc00:2b:ff92:c0a8:90d]) (user=talumbau job=sendgmr) by 2002:a6b:8d57:0:b0:774:89bd:c6cc with SMTP id p84-20020a6b8d57000000b0077489bdc6ccmr879670iod.2.1685053226152; Thu, 25 May 2023 15:20:26 -0700 (PDT) Date: Thu, 25 May 2023 22:20:16 +0000 In-Reply-To: <20230525222016.35333-1-talumbau@google.com> Mime-Version: 1.0 References: <20230525222016.35333-1-talumbau@google.com> Message-ID: <20230525222016.35333-6-talumbau@google.com> Subject: [RFC PATCH v2 5/5] virtio-balloon: Migration of working set config From: "T.J. Alumbaugh" To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , David Hildenbrand , Yuanchu Xie , Yu Zhao , "Dr. David Alan Gilbert" , Markus Armbruster , Eduardo Habkost , Marcel Apfelbaum , "=?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?=" , Yanan Wang , Eric Blake , "T.J. Alumbaugh" Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::d4a; envelope-from=3Kt9vZAgKCtEGx8H9yxH3BB381.zB9D19H-01I18ABA3AH.BE3@flex--talumbau.bounces.google.com; helo=mail-io1-xd4a.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @google.com) X-ZM-MESSAGEID: 1685053314151100009 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Migrate working_set_num_bins through VMStateDescription. Signed-off-by: T.J. Alumbaugh --- hw/virtio/virtio-balloon.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index a124d95534..6e1646abfd 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -1022,6 +1022,17 @@ static const VMStateDescription vmstate_virtio_ballo= on_page_poison =3D { } }; =20 +static const VMStateDescription vmstate_virtio_balloon_working_set_reporti= ng =3D { + .name =3D "virtio-balloon-device/working-set-report", + .version_id =3D 1, + .minimum_version_id =3D 1, + .needed =3D virtio_balloon_working_set_reporting_support, + .fields =3D (VMStateField[]) { + VMSTATE_UINT8(working_set_num_bins, VirtIOBalloon), + VMSTATE_END_OF_LIST() + } +}; + static const VMStateDescription vmstate_virtio_balloon_device =3D { .name =3D "virtio-balloon-device", .version_id =3D 1, @@ -1035,6 +1046,7 @@ static const VMStateDescription vmstate_virtio_balloo= n_device =3D { .subsections =3D (const VMStateDescription * []) { &vmstate_virtio_balloon_free_page_hint, &vmstate_virtio_balloon_page_poison, + &vmstate_virtio_balloon_working_set_reporting, NULL } }; --=20 2.41.0.rc0.172.g3f132b7071-goog