Skip to contentSkip to conversation

Porting KVM to Mac OS?

DISCUSSION Neo Jia 5 participants 7 messages Jan 25, 2009 – Feb 16, 2009 KVM

lore
Share & tools
lore

Neo Jia

author
#0 lore raw

hi,

I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already?

If it is possible, which KVM release should I use as a start?

Thanks,
Neo

Signature · 2 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
#1 lore raw
Quoted 5 lines · Neo Jia

hi,

I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already?

I have not heard of anyone doing this.

Quoted 1 line

If it is possible, which KVM release should I use as a start?

As usual, the latest -- take either KVM-83 (latest release) or KVM-HEAD git (nightly code).

Signature · 1 line
-Alexey Eromenko "Technologov"
#2 lore raw
In reply to Neo Jia

Hi,

Quoted 4 lines · Neo Jia

hi,

I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already?

I've considered doing it, but haven't gotten around to it, due to lack of inspiration.
The biggest problem IMHO is the sync. Rewriting a kvm module for Mac OS X should be fairly easy, but you'll miss all the good bugfixes from upstream. Using the upstream code with a wrapper on the other hand is probably a really big hassle, because osx doesn't really know about mmu notifiers and a lot of other Linux internal things.

So if you come up with a good idea for this problem, I'd be glad to help you out as much as time permits :-).

Alex

Quoted 11 lines

If it is possible, which KVM release should I use as a start?

Thanks,
Neo

Signature · 6 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
--
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 11 lines · Alexander Graf

Hi,

Quoted 4 lines · Neo Jia

hi,

I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already?

I've considered doing it, but haven't gotten around to it, due to lack of inspiration.
The biggest problem IMHO is the sync. Rewriting a kvm module for Mac OS X should be fairly easy, but you'll miss all the good bugfixes from upstream. Using the upstream code with a wrapper on the other hand is probably a really big hassle, because osx doesn't really know about mmu notifiers and a lot of other Linux internal things.

You can use hardware breakpoints to emulate mmu notifiers beaivor for kernel that you cannot patch. The only issue is that beacuse the source is close you may never know where is the right place to put the notification.

Quoted 21 lines

So if you come up with a good idea for this problem, I'd be glad to help you out as much as time permits :-).

Alex

Quoted 11 lines

If it is possible, which KVM release should I use as a start?

Thanks,
Neo

Signature · 6 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
-- 
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
Signature · 3 lines
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
#4 lore raw
In reply to Alexander Graf
Quoted 11 lines · Alexander Graf

Hi,

Quoted 4 lines · Neo Jia

hi,

I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already?

I've considered doing it, but haven't gotten around to it, due to lack of inspiration.
The biggest problem IMHO is the sync. Rewriting a kvm module for Mac OS X should be fairly easy, but you'll miss all the good bugfixes from upstream. Using the upstream code with a wrapper on the other hand is probably a really big hassle, because osx doesn't really know about mmu notifiers and a lot of other Linux internal things.

Most of the special Linux internal things are optional when using the external kernel modules (in order to support older host kernels). If you rely on that, there shouldn't be a huge amount of Linux-specific dependencies.

Best thing to do would be to avoid touching the KVM source code as much as humanly possible, and try to write a compatibility layer on top of the external kernel modules. You could even use awk trickery like make sync does. That way you can get bugfixes almost for free.

Regards,

Anthony Liguori

Quoted 20 lines

So if you come up with a good idea for this problem, I'd be glad to help you out as much as time permits :-).

Alex

Quoted 11 lines

If it is possible, which KVM release should I use as a start?

Thanks,
Neo

Signature · 6 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
-- 
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
Signature · 3 lines
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
author
#5 lore raw
Quoted 24 lines · Anthony Liguori
Quoted 10 lines · Alexander Graf

Hi,

Quoted 4 lines · Neo Jia

hi,

I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already?

Quoted 7 lines

I've considered doing it, but haven't gotten around to it, due to lack of inspiration.
The biggest problem IMHO is the sync. Rewriting a kvm module for Mac OS X should be fairly easy, but you'll miss all the good bugfixes from upstream. Using the upstream code with a wrapper on the other hand is probably a really big hassle, because osx doesn't really know about mmu notifiers and a lot of other Linux internal things.

Most of the special Linux internal things are optional when using the external kernel modules (in order to support older host kernels). If you rely on that, there shouldn't be a huge amount of Linux-specific dependencies.

Quoted 4 lines

Best thing to do would be to avoid touching the KVM source code as much as humanly possible, and try to write a compatibility layer on top of the external kernel modules. You could even use awk trickery like make sync does. That way you can get bugfixes almost for free.

Thanks! I am reviewing the possible interface wrapper solution now. But I just notice that the current leopard is 32-bit. Will this be a problem to run KVM as it always assume qemu-x86-64 bit?

Thanks,
Neo

Quoted 28 lines

Regards,

Anthony Liguori

Quoted 21 lines

So if you come up with a good idea for this problem, I'd be glad to help you out as much as time permits :-).

Alex

Quoted 11 lines

If it is possible, which KVM release should I use as a start?

Thanks,
Neo
--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using! --
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

--
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

Signature · 2 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
#6 lore raw
Quoted 26 lines · Neo Jia

On Sun, Jan 25, 2009 at 10:00 AM, Anthony Liguori <[email protected]

Quoted 25 lines

wrote:

Quoted 10 lines · Alexander Graf

Hi,

Quoted 4 lines · Neo Jia

hi,

I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already?

Quoted 7 lines

I've considered doing it, but haven't gotten around to it, due to lack of inspiration.
The biggest problem IMHO is the sync. Rewriting a kvm module for Mac OS X should be fairly easy, but you'll miss all the good bugfixes from upstream. Using the upstream code with a wrapper on the other hand is probably a really big hassle, because osx doesn't really know about mmu notifiers and a lot of other Linux internal things.

Most of the special Linux internal things are optional when using the external kernel modules (in order to support older host kernels). If you rely on that, there shouldn't be a huge amount of Linux-specific dependencies.

Quoted 8 lines
Quoted 4 lines

Best thing to do would be to avoid touching the KVM source code as much as humanly possible, and try to write a compatibility layer on top of the external kernel modules. You could even use awk trickery like make sync does. That way you can get bugfixes almost for free.

Thanks! I am reviewing the possible interface wrapper solution now. But I just notice that the current leopard is 32-bit. Will this be a problem to run KVM as it always assume qemu-x86-64 bit?

The Linux kernel module does work on 32 bit systems too. But please keep everything 64-bit aware, as the 10.6 kernel will be available in x86_64 flavors.

Alex

Quoted 40 lines

Thanks,
Neo

Quoted 28 lines

Regards,

Anthony Liguori

Quoted 21 lines

So if you come up with a good idea for this problem, I'd be glad to help you out as much as time permits :-).

Alex

Quoted 11 lines

If it is possible, which KVM release should I use as a start?

Thanks,
Neo
--
I would remember that if researchers were not ambitious probably today we haven't the technology we are using! --
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

--
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

Signature · 2 lines
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!