From: Igor Kozhukhov Subject: Re: xen-4.3 port Date: Tue, 28 Jan 2014 23:45:46 +0400 Message-ID: References: <29A82C69-DB0A-46EB-B11F-A7B535CD90AE@gmail.com> <20140128193430.GB9842@phenom.dumpdata.com> Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140128193430.GB9842@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Jan 28, 2014, at 11:34 PM, Konrad Rzeszutek Wilk wrote: > On Tue, Jan 28, 2014 at 11:21:34PM +0400, Igor Kozhukhov wrote: >> Hello All, >> >> i'm working on port xen-4.3 to DilOS (illumos based platform). >> >> i have problems with PV guest load. >> dom0 started, i can see info by 'xl info'. >> >> first: i see platform ID=38, but i couldn't found it in xen/public/platform.h >> >> Jan 28 01:16:44 myhost privcmd: == HYPERVISOR_platform_op 38 >> Jan 28 01:16:44 myhost privcmd: unrecognized HYPERVISOR_platform_op 38 >> >> could you please let me know - what is it the 38 platform hypercall ? > > tmem_op tmem_op defined at xen/public/xen.h, but 38 ID not defined at xen/public/platform.h >> >> next problem: i try to create a new PV guest by 'xm create dilos.cfg' >> i see on dom0 logs requests to hypercall ID=38 - i see it is __HYPERVISOR_tmem_op > > You sure it is dom0? Not the guest? yes - it is in dom0 log. > >> >> do i need implement it first ? > > No. But you should have stub functions in your hypercall page to at least > return -ENOSYS for everything you don't implement. based on current code i see: return -X_EINVAL; will it be correct to return it if ID not implemented ? > How do you construct your hyperpage? >> example here : https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/i86xpv/io/privcmd_hcall.c from line: 379 >> i have error with : >> root@myhost:/xen# xm create dilos.cfg >> Using config file "./dilos.cfg". >> Error: (1, 'Internal error', 'panic: xc_dom_boot.c:197: xc_dom_boot_domU_map: failed to mmap domU pages 0x0+0x826 [mmap, errno=6 (No such device or address)]') >> >> could you please let me know - how to identify by Xen sources - what i need implement/fix on my dom0 sources ? >> >> maybe - how to get more debug info ? >> i have output from Xen to serial console and i can get statistic, but have no more information about problem with PV guest creation. >> >> -- >> Best regards, >> Igor Kozhukhov >> >> >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xen.org >> http://lists.xen.org/xen-devel