From patchwork Fri Jul 17 20:30:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 235749 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2033222ilg; Fri, 17 Jul 2020 13:36:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaizKDo9Mbm5siHFvu08eNpuRbTM9g+BXMkF7fdn8DS2n0u9XBhk/egEMHbzXWA+GGAEHs X-Received: by 2002:a25:4945:: with SMTP id w66mr17044040yba.285.1595018182435; Fri, 17 Jul 2020 13:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595018182; cv=none; d=google.com; s=arc-20160816; b=N+N52jbja9WkM0Pfwjd/Kt1WsvRAz1nVV5XhY41FpWOtgVxEjOJM/vtfLdZmKewukw Ha8INMKnXqN6JYnknWYn0xHK2TgJCVq+rPCm6lrTqChwlvbquHRBjpzGOVFIm4OFL53I rrBijhYaXlbIrtg9q76K9YkPZyVMAOD+i1ypwF/TFk0hfYpRYWSBrWSebf+yiQqfACNl pasTxNBG1Vu+KdQX4syJogh93gYs/s2NQH3qA6B0arkFyJ7apbaqM6g2RbX8h4pS12PB lU0L5sHXJlk7QAskG7FfxCX2hyvAUdRvQnckbz28L5SgU0xBYekWB3ZRnt2/BqII7UBR dxfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=5c/gsJqJ6XcNRIcgHud5UAlDedsAxFvUwe0J2S8P1Ow=; b=EWGdJeHTIHgHsMlAb0GDozmbgC+acEXms0Fe2qVCTYTOTO6Xb+p3+pCnPxfvFlF31N OY0NEYFlaKN7qFHB4O6D1AUR/IiHecdzt20WIvWsQXBj04DvITHQHj3K+rLMxvAITwUP 1f3H/qnW3GFcJge55FcngmPojTgKj2EKCdQCcOe2safCFkSscAwaly2+YC6QkQ0J2rkY u8gRezsazRa5Wl1ZhNZ6MpTQMhm9CnsfkCOIJvd9rca9oBehyUlgQaeIwQDgI2Abe9oO 6WaD0h/N+u04wnYxt6AXdFzaoechS7WrisNfCiv+aZ2+P/TokgPzfT+00X/PiQz7rg9+ 91tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xjtHha+h; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f128si9347422ybf.34.2020.07.17.13.36.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Jul 2020 13:36:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xjtHha+h; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jwX5h-00065E-RG for patch@linaro.org; Fri, 17 Jul 2020 16:36:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwX58-00064u-Nq for qemu-devel@nongnu.org; Fri, 17 Jul 2020 16:35:46 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:47097) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jwX56-0000Jg-Rk for qemu-devel@nongnu.org; Fri, 17 Jul 2020 16:35:46 -0400 Received: by mail-pf1-x430.google.com with SMTP id a23so4338746pfk.13 for ; Fri, 17 Jul 2020 13:35:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5c/gsJqJ6XcNRIcgHud5UAlDedsAxFvUwe0J2S8P1Ow=; b=xjtHha+hAKGbS5Zs36DiLtuQrk0M4D2HYdYNhmBBTzmZRSDgj9I/ygjKew0thwaS7Q N+qPsAMUOgJamJx8DiLo3Vxh7tK8Bqsan2L5D0PFchFNj3lAnlJsfCwl8PW5TumfYRde 7Z/PtA2uZpzOtTXy2F2Dcp9C9wwqX6UqoPFUkD/08J6/HvC1nu9ihXwmRch4oy+cHPzq UtG5wsvfDxcmi/rop+985UPdxn3Yf3ecDIf51TjPu98TP0Jlx6PTIk1qYurk37wdwvWc ueebAXK0SR22hoIW24U06qXIDhharR/TpBVQHLpNtGi34vqO0lIXM0xT7uQ2oe0mEF0w ioFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5c/gsJqJ6XcNRIcgHud5UAlDedsAxFvUwe0J2S8P1Ow=; b=DraGWlHONHmrQMXXIapnazHHpNbTZ9yp44zD1TSncky8++X+jAsVsESqIu+LXKXQA2 rnOXD9f4Y/xQRw0Josz+nr5gt+ZZCAWJvPcpbNgGi4eZpQLoB3iG7+YemunIB5X3kIXN MfmF5d9LgOKJHPsyai2jRBtl2r86hgMb3MSvqx0EVWhcaIRopIVU4AGpmQMozfS248v6 dL8myEkOIjUs2PsmQVHSW4th9RDDEX3HnU3FJsdlJglYAgWcOnlhsZwiO3LdgEQeVvNs ylVcoLkPnJBSrXTmebrpEuKYRw2aEG4TOrOcQ1IO62n0YlBr8wgR8jR7THdu6EdMgHiR p1cA== X-Gm-Message-State: AOAM531U/MG5uCH3sZgDzGg4GxZ4JMRT2/wOmdGgvOz2UQ1Uu5a/eoWy 3jAkWMPFj+wmhTkMndUAqEamZwz1+Bs= X-Received: by 2002:a62:15c3:: with SMTP id 186mr9843739pfv.30.1595018141686; Fri, 17 Jul 2020 13:35:41 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net ([2601:199:4480:60c0:b0d0:3aae:620c:a8c5]) by smtp.gmail.com with ESMTPSA id x7sm8212848pfq.197.2020.07.17.13.35.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 13:35:41 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH v1 0/3] python/qemu: follow-up changes for ConsoleSocket Date: Fri, 17 Jul 2020 16:30:38 -0400 Message-Id: <20200717203041.9867-1-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::430; envelope-from=robert.foley@linaro.org; helo=mail-pf1-x430.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, 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, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, jsnow@redhat.com, robert.foley@linaro.org, peter.puhov@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" For v1, we added a few minor changes, and also added one new patch in tests/vm to add a shutdown timeout. This fixes an issue we saw in testing the aarch64 VMs with TCG. This patch series introduces a few follow-up changes after the introduction of ConsoleSocket. The first patch introduces cleanup changes for pylint and flake8. The second patch allows machine.py to use a single type for the console_socket, a ConsoleSocket. Since machine.py will use ConsoleSocket for both the draining and non-draining cases, we changed ConsoleSocket to handle the case where it does not drain the socket at all and essentially behaves like a socket. Robert Foley (3): python/qemu: Cleanup changes to ConsoleSocket python/qemu: Change ConsoleSocket to optionally drain socket. tests/vm: add shutdown timeout in basevm.py python/qemu/console_socket.py | 137 +++++++++++++++++++--------------- python/qemu/machine.py | 14 ++-- python/qemu/pylintrc | 2 +- tests/vm/basevm.py | 15 ++-- 4 files changed, 94 insertions(+), 74 deletions(-) -- 2.17.1