From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7t3v-0006SW-D5 for qemu-devel@nongnu.org; Tue, 10 Nov 2009 10:55:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7t3q-0006PX-5S for qemu-devel@nongnu.org; Tue, 10 Nov 2009 10:55:19 -0500 Received: from [199.232.76.173] (port=36970 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7t3o-0006PF-Tq for qemu-devel@nongnu.org; Tue, 10 Nov 2009 10:55:12 -0500 Received: from mail-pz0-f188.google.com ([209.85.222.188]:38135) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7t3n-00077N-Py for qemu-devel@nongnu.org; Tue, 10 Nov 2009 10:55:12 -0500 Received: by pzk26 with SMTP id 26so90699pzk.4 for ; Tue, 10 Nov 2009 07:55:10 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <374D220D-FE6E-410B-83F3-E8988BA61A6D@suse.de> References: <1257845850-4660-1-git-send-email-scottt.tw@gmail.com> <1257845850-4660-2-git-send-email-scottt.tw@gmail.com> <1257845850-4660-3-git-send-email-scottt.tw@gmail.com> <4AF97D3B.8080601@redhat.com> <374D220D-FE6E-410B-83F3-E8988BA61A6D@suse.de> Date: Tue, 10 Nov 2009 23:55:10 +0800 Message-ID: Subject: Re: [Qemu-devel] [PATCH V2 2/3] usb-gotemp: new module emulating a USB thermometer From: Scott Tsai Content-Type: text/plain; charset=UTF-8 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Avi Kivity , qemu-devel@nongnu.org On Tue, Nov 10, 2009 at 11:33 PM, Alexander Graf wrote: > How about having a monitor command to change the temperature, leveraging a > "common interface"? > That way in the future real host temperature measurements could maybe get > forwarded there too. At least for battery I've had several people ask > already if it's possible to read the host battery status (incl. AC status) > from inside the VM. I'd certainly like to make this code useful for something other than developer training. How about a new monitor command "thermometer_set" that works like "mouse_move"? "thermometer_set" would just set the temperature of the "first" thermometer device it finds.