Skip to contentSkip to conversation

KVM on MIPS?

DISCUSSION Dale Farnsworth 5 participants 8 messages Mar 25, 2010 – Aug 13, 2010 KVM

lore
Share & tools
lore
#0 lore raw

I'm beginning to look at implementing KVM on MIPS. I've tried to search for any work-in-progress on this but haven't found much at all.

If you know of anyone who is working on this or of pitfalls I should consider before jumping in, please let me know.

Thanks,
-Dale

#1 lore raw
Quoted 3 lines · Dale Farnsworth

I'm beginning to look at implementing KVM on MIPS. I've tried to search for any work-in-progress on this but haven't found much at all.

Google comes up with some hits, but nothing concrete.

Quoted 3 lines

If you know of anyone who is working on this or of pitfalls I should consider before jumping in, please let me know.

Is the instruction set virtualizable? Are you planning full virt or paravirt?

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.
#2 lore raw

Am 25.03.2010 um 22:04 schrieb Avi Kivity <[email protected]>:

Quoted 5 lines · Dale Farnsworth
Quoted 3 lines

I'm beginning to look at implementing KVM on MIPS. I've tried to search for any work-in-progress on this but haven't found much at all.

Quoted 7 lines

Google comes up with some hits, but nothing concrete.

Quoted 3 lines

If you know of anyone who is working on this or of pitfalls I should consider before jumping in, please let me know.

Is the instruction set virtualizable?

FWIW it's not. Kernel mode is used based on an address offset of the IP. Since you'd want to have your guest running in user mode, you're pretty much lost there.

Alex

Quoted 9 lines

Are you planning full virt or paravirt?

Signature · 6 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw
Quoted 12 lines · Alexander Graf

Am 25.03.2010 um 22:04 schrieb Avi Kivity <[email protected]>:

Quoted 9 lines · Dale Farnsworth
Quoted 7 lines

I'm beginning to look at implementing KVM on MIPS. I've tried to search
for any work-in-progress on this but haven't found much at all.

If you know of anyone who is working on this or of pitfalls I should consider before jumping in, please let me know.

Quoted 5 lines
Quoted 1 line

Is the instruction set virtualizable?

FWIW it's not. Kernel mode is used based on an address offset of the IP. Since you'd want to have your guest running in user mode, you're pretty much lost there.

I guess that would qualify as a pitfall. Thanks Avi and Alex.

-Dale

#4 lore raw
Quoted 13 lines · Dale Farnsworth
Quoted 12 lines · Alexander Graf

Am 25.03.2010 um 22:04 schrieb Avi Kivity <[email protected]>:

Quoted 9 lines · Dale Farnsworth
Quoted 7 lines

I'm beginning to look at implementing KVM on MIPS. I've tried to search
for any work-in-progress on this but haven't found much at all.

If you know of anyone who is working on this or of pitfalls I should consider before jumping in, please let me know.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Is the instruction set virtualizable?

FWIW it's not. Kernel mode is used based on an address offset of the IP. Since you'd want to have your guest running in user mode, you're pretty much lost there.

I guess that would qualify as a pitfall. Thanks Avi and Alex.

After thinking about this some more, I think this means we can't run an unmodified guest. It should be possible to build the guest kernel to run in supervisor or user mode/address space.

I'm new to MIPS, so I'm still looking for other challenges in virtualizing the instruction set.

-Dale

#5 lore raw
Quoted 6 lines · Dale Farnsworth <dale <at> farnsworth.org> writes:

After thinking about this some more, I think this means we can't run an unmodified guest. It should be possible to build the guest kernel to run in supervisor or user mode/address space.

I'm new to MIPS, so I'm still looking for other challenges in virtualizing the instruction set.

You might want to read "Disco: Running Commodity Operating Systems on Scalable Multiprocessors" by the folks at Stanford who eventually went on to write VMware.

They wrote a VMM for a MIPS ccNUMA. IIRC, they had to both do binary translation, as well as relink Irix to live at an address in the user KSEG, instead the kernel KSEG.

- nolan

#6 lore raw
In reply to Dale Farnsworth
Quoted 20 lines · Dale Farnsworth
Quoted 19 lines · Dale Farnsworth
Quoted 17 lines · Alexander Graf

Am 25.03.2010 um 22:04 schrieb Avi Kivity<[email protected]>:

Quoted 10 lines · Dale Farnsworth
Quoted 7 lines

I'm beginning to look at implementing KVM on MIPS. I've tried to search
for any work-in-progress on this but haven't found much at all.

If you know of anyone who is working on this or of pitfalls I should consider before jumping in, please let me know.

Is the instruction set virtualizable?

FWIW it's not. Kernel mode is used based on an address offset of the IP. Since you'd want to have your guest running in user mode, you're pretty much lost there.

Quoted 8 lines
Quoted 1 line

I guess that would qualify as a pitfall. Thanks Avi and Alex.

After thinking about this some more, I think this means we can't run an unmodified guest. It should be possible to build the guest kernel to run in supervisor or user mode/address space.

I'm new to MIPS, so I'm still looking for other challenges in virtualizing the instruction set.

Hi Dale, how is this going?

Hollis Blanchard
Mentor Graphics, Embedded Systems Division

#7 lore raw
Quoted 27 lines · Hollis Blanchard
Quoted 26 lines · Dale Farnsworth
Quoted 13 lines · Dale Farnsworth
Quoted 12 lines · Alexander Graf

Am 25.03.2010 um 22:04 schrieb Avi Kivity<[email protected]>:

Quoted 9 lines · Dale Farnsworth
Quoted 7 lines

I'm beginning to look at implementing KVM on MIPS. I've tried to search
for any work-in-progress on this but haven't found much at all.

If you know of anyone who is working on this or of pitfalls I should consider before jumping in, please let me know.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Is the instruction set virtualizable?

FWIW it's not. Kernel mode is used based on an address offset of the IP. Since you'd want to have your guest running in user mode, you're pretty much lost there.

I guess that would qualify as a pitfall. Thanks Avi and Alex.

After thinking about this some more, I think this means we can't run an unmodified guest. It should be possible to build the guest kernel to run in supervisor or user mode/address space.

Quoted 7 lines
Quoted 2 lines

I'm new to MIPS, so I'm still looking for other challenges in virtualizing the instruction set.

Hi Dale, how is this going?

Hollis Blanchard
Mentor Graphics, Embedded Systems Division

Unfortunately, I haven't been able to spend much time on it. So, it's not really going.

-Dale