From patchwork Wed Jul 15 20:48:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foley X-Patchwork-Id: 235619 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp208477ilg; Wed, 15 Jul 2020 13:52:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkqUXl6gh6VQelQebVwJk34uvViu1cHbcejpwW7LVC9BLdtTdd8hNQQOgAZlbOdbemeiob X-Received: by 2002:a25:d4d6:: with SMTP id m205mr1373991ybf.7.1594846342268; Wed, 15 Jul 2020 13:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594846342; cv=none; d=google.com; s=arc-20160816; b=cEhmY3ma2Ld+H8eQNzCnH+fc/TNLlWWnDfU3IRaqvjMzhZA+4onmE9HbiSuXbvIN1M Otkp7VxrEJtcTsrzN/kNeoK4UVXBeVGy6zaxiTN2iA/K1KNLXyBm2rQj+P4CFrMZHQ7E 4BYSvSiLHI0yxU0zZRFXfAgTHNi2MX0H1+PYmJun0u2JuupMAwnjo6U22kZ9kTWimucR ZmbsRJSZxMMgnI70I0VduJ8WbhjpulFX9eMKpOLGNnH9xGMuNy2GX+rDqHrradYOl4jF WgftY/6zoJ3LPILxA//skVsui/CBKYRMipHbefL0ti1pzIT7dyYrnJVvSESyPNUKYaxR yEng== 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:message-id:date:subject:to:from :dkim-signature; bh=8YG7sNe1WZD8WXiuBEhD8a7IbM25Es/A8eo5RXuxdNo=; b=g/nod97Jp4w4JeODPi20vn0CkOw3YJXKoeFM+l6KoE4Dn33p7p1XA1wGW4KiqHwaK1 VmMUV9DEG16NcQwO71VN654G4aqOfwIDTRCYI2gvMY9+QAqclvC8y79znbi3/hfRm1NS 9mU9fTzvVrx+uGwom8MB4Xu6YeQ0XDo6ljwR/cXSY0SKx2UMNMiYoGAOoyoi/IdKuKwD OHuZwI93J9Qf6WDVbNcHMjxbgOd+1WqL3m4WgMwVbJzaDK4AK3KjkaVQk1w7yBPn23sH 8kRNRd6KOBHyvqnh56U6YUYmmvEYl89BCk5ddTTnAh96zQH8/TiNNYBhTvUkqHg6wvId TZ1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QbH4X7ck; 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 v67si4097377ybb.90.2020.07.15.13.52.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Jul 2020 13:52: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=QbH4X7ck; 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]:35226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jvoO5-0006kB-PX for patch@linaro.org; Wed, 15 Jul 2020 16:52:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jvoNM-0006jj-2K for qemu-devel@nongnu.org; Wed, 15 Jul 2020 16:51:36 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:43757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jvoNJ-0007Yh-AU for qemu-devel@nongnu.org; Wed, 15 Jul 2020 16:51:35 -0400 Received: by mail-pg1-x531.google.com with SMTP id w2so3678864pgg.10 for ; Wed, 15 Jul 2020 13:51:28 -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; bh=8YG7sNe1WZD8WXiuBEhD8a7IbM25Es/A8eo5RXuxdNo=; b=QbH4X7ckC0Wdb9nJHSHLI5mUrSt7SHUzmjDUUqGNXFAMYi8ABwY6k0YcTbb+ynfLMe cmu+pxO5gsGsVEDGEJCV7qyczeoD8rKcfa76jjVaRpGWuvIxY6WFwjTU4EWdg+Wu5H54 69m2IYFW1stR3TU/7MDFFEKVhFMyEejYYD8IZH+D1dgJ9JWFUsYbvVixlc0rnsznSNfB lI65fPF13UyytLZrt8NO8E0QaSOWxKP64c0z/oEYcQ1zv+DOVgUKK8ht1qbNx4tTGRV1 zuj1P+pDUByqYyBIYhqUgTTKOMs+Gqmt8JLbOOaFgJ1dOhD4o00M1diHHQNqqMlUuT4N OeYQ== 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; bh=8YG7sNe1WZD8WXiuBEhD8a7IbM25Es/A8eo5RXuxdNo=; b=JfwR+I1PGcnktGHmD5qPm7L2G3ddPpiJrj87OULOdr0viJeODVRJ9PYCf5plW+HztB egAoba7dYjPjmkUnTqq7fvEW/bt88+7d/Ao1u5cGbAEdNQOWpcQtUacYZWcQ1oos1ccv 5z5DMsFIg8r+waNMO6IJw/MqT8xfSXQK+KTuH/4xCb360xpmPz9I8EDjbF9VXiKc7GA+ MU5QHzJS94crw0V2hY6sBu+ZFXpUqBaBH+0h9Oq42XHe/61lDS6VPS4vjTJmwOGx+7Nr lQTxsb7HBGHRbWdtvurdLh4b6Ls4kkXS7ZYmGaiJ8TLS/fWibo8TztXYpKc6u72rXvEl iSbw== X-Gm-Message-State: AOAM532b+EDrOq6FczSRtLJryw9UX/nNMeoA8bkIZa2c0NCfmwJQzbEV S5Ew4ZwWgn6++LuamVPbJRAFDd4DEC97xg== X-Received: by 2002:a63:371d:: with SMTP id e29mr1333401pga.153.1594846286584; Wed, 15 Jul 2020 13:51:26 -0700 (PDT) Received: from Rfoley-MA01.hsd1.ma.comcast.net (c-73-47-162-176.hsd1.ma.comcast.net. [73.47.162.176]) by smtp.gmail.com with ESMTPSA id 66sm2687690pfg.63.2020.07.15.13.51.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 13:51:25 -0700 (PDT) From: Robert Foley To: qemu-devel@nongnu.org Subject: [PATCH 0/2] python/qemu: follow-up changes for ConsoleSocket Date: Wed, 15 Jul 2020 16:48:12 -0400 Message-Id: <20200715204814.2630-1-robert.foley@linaro.org> X-Mailer: git-send-email 2.17.1 Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=robert.foley@linaro.org; helo=mail-pg1-x531.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" 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 (2): python/qemu: Cleanup changes to ConsoleSocket python/qemu: Change ConsoleSocket to optionally drain socket. python/qemu/console_socket.py | 133 +++++++++++++++++++--------------- python/qemu/machine.py | 14 ++-- python/qemu/pylintrc | 2 +- 3 files changed, 82 insertions(+), 67 deletions(-) -- 2.17.1