Received: from [140.186.70.92] (port=54963 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OamZ2-0006kS-Pq for qemu-devel@nongnu.org; Mon, 19 Jul 2010 05:23:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OamZ0-0003si-7g for qemu-devel@nongnu.org; Mon, 19 Jul 2010 05:23:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6151) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OamZ0-0003sV-0H for qemu-devel@nongnu.org; Mon, 19 Jul 2010 05:23:06 -0400 Date: Mon, 19 Jul 2010 10:23:03 +0100 From: "Richard W.M. Jones" Subject: Re: [Qemu-devel] Question about qemu firmware configuration (fw_cfg) device Message-ID: <20100719092303.GU13194@amd.home.annexia.org> References: <43B9EAA8-E3F5-4903-896C-DEBD90E06162@suse.de> <20100719083050.GG4689@redhat.com> <51B0CBDB-E40B-4A14-A33E-34E13B9BF3CB@suse.de> <20100719084800.GI4689@redhat.com> <28292784-F194-43D8-A640-B0DCAB0CF940@suse.de> <20100719090028.GJ4689@redhat.com> <555E6039-925B-4FB7-91EC-748DBC093FA2@suse.de> <20100719091054.GL4689@redhat.com> <41BA43FB-1052-457C-A6C3-FC8D1FE02D12@suse.de> <20100719091922.GN4689@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100719091922.GN4689@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gleb Natapov Cc: Alexander Graf , qemu-devel@nongnu.org On Mon, Jul 19, 2010 at 12:19:22PM +0300, Gleb Natapov wrote: > Vcpu executes "in %ax". Next instruction is executed 6 seconds later. > All timers that should have been processed during this time fire at the > same moment triggering all kind of timeouts. Think about watchdog that > should be written into every two seconds otherwise it does reset. This particular code runs very early in boot, and the atomic copy operation is very quick even with a 100MB initrd. But the question I think should be: If a guest maliciously (after boot) tried to use this mechanism, could it do harm to the host? Or would it just harm itself? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html