From: Anthony Liguori <anthony-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
To: Omar Khan <okhan-e94Sedi4moU@public.gmane.org>
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: vmcall time
Date: Sun, 11 Mar 2007 12:02:41 -0500 [thread overview]
Message-ID: <45F43631.3060703@codemonkey.ws> (raw)
In-Reply-To: <loom.20070311T125427-987-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
Omar Khan wrote:
> Anthony Liguori <anthony@...> writes:
>
>
>> I've got a patch that should appear in virtbench soon that actually
>> measures vmcall latency.
>>
>> http://ozlabs.org/~rusty/virtbench
>>
>>
>
> Thanks Anthony. I have a newbie question though. In the vmcall function in the
> patch:
>
> +static int vmcall(unsigned int cmd)
> +{
> + signal(SIGILL, illegal_instruction);
> + asm volatile(".byte 0x0F,0x01,0xC1,0xC3\n" ::"a"(cmd));
> + signal(SIGILL, SIG_DFL);
> +
> + return 0;
> +}
>
> Why do you have the ret opcode '0xC3' with the vmcall?
>
Because I lazily copied from KVM instead of looking them up. I figured
0xC3 was a NOP. Will fix.
> Thanks
>
> Omar
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
next prev parent reply other threads:[~2007-03-11 17:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-10 22:05 vmcall time Omar Khan
[not found] ` <loom.20070310T230225-387-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2007-03-10 23:22 ` Anthony Liguori
2007-03-11 11:58 ` Omar Khan
[not found] ` <loom.20070311T125427-987-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2007-03-11 17:02 ` Anthony Liguori [this message]
[not found] ` <45F43631.3060703-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-03-11 17:25 ` Dor Laor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45F43631.3060703@codemonkey.ws \
--to=anthony-rdkfgonbjusknkdkm+me6a@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=okhan-e94Sedi4moU@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox