* Porting KVM to Mac OS? @ 2009-01-25 8:16 Neo Jia 2009-01-25 9:27 ` Alexey Eremenko 2009-01-25 10:38 ` Alexander Graf 0 siblings, 2 replies; 7+ messages in thread From: Neo Jia @ 2009-01-25 8:16 UTC (permalink / raw) To: kvm 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 -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting KVM to Mac OS? 2009-01-25 8:16 Porting KVM to Mac OS? Neo Jia @ 2009-01-25 9:27 ` Alexey Eremenko 2009-01-25 10:38 ` Alexander Graf 1 sibling, 0 replies; 7+ messages in thread From: Alexey Eremenko @ 2009-01-25 9:27 UTC (permalink / raw) To: kvm On Sun, Jan 25, 2009 at 8:16 AM, Neo Jia <neojia@gmail.com> wrote: > 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. > 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). -- -Alexey Eromenko "Technologov" ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting KVM to Mac OS? 2009-01-25 8:16 Porting KVM to Mac OS? Neo Jia 2009-01-25 9:27 ` Alexey Eremenko @ 2009-01-25 10:38 ` Alexander Graf 2009-01-25 12:15 ` Izik Eidus 2009-01-25 18:00 ` Anthony Liguori 1 sibling, 2 replies; 7+ messages in thread From: Alexander Graf @ 2009-01-25 10:38 UTC (permalink / raw) To: Neo Jia; +Cc: kvm Hi, On 25.01.2009, at 09:16, Neo Jia wrote: > 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 > 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting KVM to Mac OS? 2009-01-25 10:38 ` Alexander Graf @ 2009-01-25 12:15 ` Izik Eidus 2009-01-25 18:00 ` Anthony Liguori 1 sibling, 0 replies; 7+ messages in thread From: Izik Eidus @ 2009-01-25 12:15 UTC (permalink / raw) To: Alexander Graf; +Cc: Neo Jia, kvm Alexander Graf wrote: > Hi, > > On 25.01.2009, at 09:16, Neo Jia wrote: > >> 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. > > 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 > >> 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 majordomo@vger.kernel.org >> 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting KVM to Mac OS? 2009-01-25 10:38 ` Alexander Graf 2009-01-25 12:15 ` Izik Eidus @ 2009-01-25 18:00 ` Anthony Liguori 2009-02-16 18:01 ` Neo Jia 1 sibling, 1 reply; 7+ messages in thread From: Anthony Liguori @ 2009-01-25 18:00 UTC (permalink / raw) To: Alexander Graf; +Cc: Neo Jia, kvm Alexander Graf wrote: > Hi, > > On 25.01.2009, at 09:16, Neo Jia wrote: > >> 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 > 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 > >> 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 majordomo@vger.kernel.org >> 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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting KVM to Mac OS? 2009-01-25 18:00 ` Anthony Liguori @ 2009-02-16 18:01 ` Neo Jia 2009-02-16 18:12 ` Alexander Graf 0 siblings, 1 reply; 7+ messages in thread From: Neo Jia @ 2009-02-16 18:01 UTC (permalink / raw) To: Anthony Liguori; +Cc: Alexander Graf, kvm On Sun, Jan 25, 2009 at 10:00 AM, Anthony Liguori <anthony@codemonkey.ws> wrote: > Alexander Graf wrote: >> >> Hi, >> >> On 25.01.2009, at 09:16, Neo Jia wrote: >> >>> 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. 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 > > Regards, > > Anthony Liguori > >> 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 >> >>> 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 majordomo@vger.kernel.org >>> 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 majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting KVM to Mac OS? 2009-02-16 18:01 ` Neo Jia @ 2009-02-16 18:12 ` Alexander Graf 0 siblings, 0 replies; 7+ messages in thread From: Alexander Graf @ 2009-02-16 18:12 UTC (permalink / raw) To: Neo Jia; +Cc: Anthony Liguori, kvm@vger.kernel.org On 16.02.2009, at 19:01, Neo Jia <neojia@gmail.com> wrote: > On Sun, Jan 25, 2009 at 10:00 AM, Anthony Liguori <anthony@codemonkey.ws > > wrote: >> Alexander Graf wrote: >>> >>> Hi, >>> >>> On 25.01.2009, at 09:16, Neo Jia wrote: >>> >>>> 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. > > 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 > > > Thanks, > Neo > > >> >> Regards, >> >> Anthony Liguori >> >>> 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 >>> >>>> 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 majordomo@vger.kernel.org >>>> 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 majordomo@vger.kernel.org >>> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> > > > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using! ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-02-16 18:12 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-01-25 8:16 Porting KVM to Mac OS? Neo Jia 2009-01-25 9:27 ` Alexey Eremenko 2009-01-25 10:38 ` Alexander Graf 2009-01-25 12:15 ` Izik Eidus 2009-01-25 18:00 ` Anthony Liguori 2009-02-16 18:01 ` Neo Jia 2009-02-16 18:12 ` Alexander Graf
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox