From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH unit-tests 3/3] Test that vcpu does not continue to run after issuing S3. Date: Tue, 11 Jan 2011 16:08:21 +0200 Message-ID: <4D2C6455.7050609@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> <20110111135433.GB14750@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: mtosatti@redhat.com, kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mx1.redhat.com ([209.132.183.28]:17625 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756034Ab1AKOIZ (ORCPT ); Tue, 11 Jan 2011 09:08:25 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0BE8OGa021190 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 11 Jan 2011 09:08:24 -0500 In-Reply-To: <20110111135433.GB14750@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 01/11/2011 03:54 PM, Gleb Natapov wrote: > 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? We may want to move non-kvm tests to qemu.git. Though all of the non-api tests work equally for qemu and kvm. -- error compiling committee.c: too many arguments to function