From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH unit-tests 3/3] Test that vcpu does not continue to run after issuing S3. Date: Tue, 11 Jan 2011 15:54:33 +0200 Message-ID: <20110111135433.GB14750@redhat.com> References: <1294752607-7920-1-git-send-email-gleb@redhat.com> <1294752607-7920-3-git-send-email-gleb@redhat.com> <4D2C60C4.1070100@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: mtosatti@redhat.com, kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:32285 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753540Ab1AKNyf (ORCPT ); Tue, 11 Jan 2011 08:54:35 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0BDsZqD022084 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Jan 2011 08:54:35 -0500 Content-Disposition: inline In-Reply-To: <4D2C60C4.1070100@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jan 11, 2011 at 03:53:08PM +0200, Avi Kivity wrote: > On 01/11/2011 03:30 PM, Gleb Natapov wrote: > >+ > >+asm ( > >+ ".global resume_start\n" > >+ ".global resume_end\n" > >+ ".code16\n" > >+ "resume_start:\n" > >+ "mov 0x0, %eax\n" > >+ "mov $0xf4, %dx\n" > >+ "out %eax, %dx\n" > >+ "1: hlt\n" > >+ "jmp 1b\n" > >+ "resume_end:\n" > >+#ifdef __i386__ > >+ ".code32\n" > >+#else > >+ ".code64\n" > >+#endif > >+ ); > > Is this a kvm unit test or a qemu unit test? > Both? Is this a bad thing? -- Gleb.