Re: [PATCH 00/18] KVM: PPC: Virtualize Gekko guests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/08/2010 12:58 PM, Alexander Graf wrote:
If it really gets unusably slow, I'd rather binary patch the guest on
the fly in KVM according to rules set by the userspace client.
Is that even possible?  Do those register-pair instructions and registers map 1:1 to 970 instructions and registers?
Almost. Basically all I need to do is execute 2 FPU instructions instead of one for single instructions and paired single special instructions. So if I could patch the instruction to jump to some shared memory page, it'd become fast. At least as long as I figure out how to make sure we run with FP=0 in normal code, but with FP=1 in the special page ;).

How do you locate a free virtual address to poke your shared memory page into?
What if the guest kernel instantiates it later?
Aren't direct jumps limited in their offset?
What if an exception happens in the shared memory page?

Patching is hard, let's go shopping.

But we'll
get there when it turns out to be too slow. For now I'd rather like to
have something working at all and then improve speed :-).

Well, I want to see the light at the end of the tunnel first.  Adding code is easy, ripping it out later not so much.
Hum, so you suggest I get some real application running properly first so we can evaluate if it's fast enough?

Yes, a real application typical for whatever use case you envision for Gekko emulation (can you shed a few words on that please).

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux