From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH kvm-unit-tests] Add PCID/INVPCID test Date: Thu, 17 May 2012 19:40:12 -0300 Message-ID: <20120517224012.GA23645@amt.cnet> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "'kvm@vger.kernel.org'" To: "Mao, Junjie" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:64526 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030492Ab2EQWqa (ORCPT ); Thu, 17 May 2012 18:46:30 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Mon, May 14, 2012 at 06:25:42AM +0000, Mao, Junjie wrote: > Add unit test for basic functionality of PCID/INVPCID feature exposing in kvm. > > Signed-off-by: Junjie Mao > --- > config-x86-common.mak | 2 + > config-x86_64.mak | 3 +- > x86/README | 1 + > x86/pcid.c | 185 +++++++++++++++++++++++++++++++++++++++++++++++++ > x86/unittests.cfg | 4 + > 5 files changed, 194 insertions(+), 1 deletions(-) > create mode 100644 x86/pcid.c gcc -g -D__x86_64__ -I../include/x86 -m64 -O1 -MMD -MF x86/.pcid.d -g -fomit-frame-pointer -Wall -fno-stack-protector -I. -std=gnu99 -ffreestanding -I lib -I lib/x86 -c -o x86/pcid.o x86/pcid.c x86/pcid.c: Assembler messages: x86/pcid.c:55: Error: no such instruction: `invpcid (%rsi),%rdi' make: *** [x86/pcid.o] Error 1 Please use the instruction opcode directly (.byte xyz)