Modif. in Xen
Hi,
I am new in xen developing and I want adding timers in the VMM (hypervisor) but I remark that we can't add methodes whitch print in files !!
Is there a solution or alternative ?
best regards.
2008/11/6 <[email protected]>
Quoted 445 lines
Send Xen-devel mailing list submissions to
[email protected]To subscribe or unsubscribe via the World Wide Web, visit
http://lists.xensource.com/mailman/listinfo/xen-devel
or, via email, send a message with subject or body 'help' to
[email protected]You can reach the person managing the list at
[email protected]When replying, please edit your Subject line so it is more specific than "Re: Contents of Xen-devel digest..."
Today's Topics:
1. Re: Issues in call to
get_domain_by_id()(Keir Fraser)
2. Re: [patch 0/6] xenblk: AddO_DIRECTandO_SYNCsupport. (Joe Jin)
3. Re: [patch 0/6] xenblk: AddO_DIRECTandO_SYNCsupport. (Keir Fraser)
4. Re: [patch 0/6] xenblk: AddO_DIRECTandO_SYNCsupport. (Keir Fraser)
5. Re: mmx sse emulation (Ashish Bijlani)
6. Re: [patch 0/6] xenblk: AddO_DIRECTandO_SYNCsupport. (Keir Fraser)
7. Re: debuggers andhap_gva_to_gfn()inguest_walk.c(Tim Deegan)----------------------------------------------------------------------
Message: 1
Date: Thu, 06 Nov 2008 08:39:05 +0000
From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] Issues in call toget_domain_by_id()
To: <[email protected]>, <[email protected]>
Message-ID: <C5385DA9.1EED7%[email protected]<C5385DA9.1EED7%[email protected]>Quoted 1 line
Content-Type: text/plain; charset="US-ASCII"
Quoted 1 line · bhavani krishnan
I am new to xen. I need to write a program which sits in dom0 and reads
the
Quoted 2 lines
domU page tables. I basically need a list of virtual pages which are are mapped onto a domU at any instant. Please let me know the best approach
to do
Quoted 3 lines
this?
Currently I am using control interface (libxc) to get list of pfns by
calling
Quoted 1 line
xc_get_pfn_list. The stupid that I am having now is that if i try to callany
Quoted 1 line
function (eg:
get_domain_by_id) defined insched.horxen.h, I getfollowing
Quoted 2 lines
error at compile time
undefined reference toget_domain_by_id'You can't get at Xen-internal functions from outside Xen.
-- Keir
------------------------------
Message: 2
Date: Thu, 6 Nov 2008 16:23:19 +0800
From: Joe Jin <[email protected]>
Subject: Re: [Xen-devel] [patch 0/6] xenblk: AddO_DIRECTandO_SYNC
support.
To: Jens Axboe <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>,[email protected], [email protected], [email protected], Joe Jin <[email protected]>, [email protected], [email protected], KeirFraser
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-asciiQuoted 6 lines · Jens Axboe
Quoted 5 lines · Keir Fraser
Quoted 3 lines · Jens Axboe
Quoted 3 lines
Quoted 1 line
Does blkback propagate unplug events downwards?
Not sure what that means. blkback does its own limited queue
plugging to try
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
to develop usefully schedulable batches of I/O. There's no concept
of
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines
Quoted 1 line
plugging across the blkfront/blkback interface.
So once you leave your queuing loop, you unplug the below device? Or just point me at the source...
The tree's at http://xenbits.xensource.com/linux-2.6.18-xen.hg
You can clone it or browse it there.
The medium- to long-term issue is just to make sure that Jeremy's port
of
Quoted 1 line
Quoted 1 line
blkback into upstream Linux (which he's probably working on at the
moment)
Quoted 1 line
Quoted 1 line
doesn't perpetuate the bio violations. But I guess we should fix 2.6.18
too
Quoted 7 lines
Quoted 2 lines
since others base their own Xen patchsets on it still (e.g., for dom0 support).
Ah thanks! Perhaps we can talk Joe into snipping the
bio_alloc()changes out of his patch #2 - Joe, just thebio_alloc()andsubmit_bio()stuff, you don't have to include thebio_setchanges.Thanks, will get rid of it.
Joe
------------------------------
Message: 3
Date: Thu, 06 Nov 2008 08:44:27 +0000
From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] [patch 0/6] xenblk: AddO_DIRECTandO_SYNC
support.
To: Jens Axboe <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>,[email protected], [email protected], [email protected], Joe Jin <[email protected]>, [email protected], [email protected]Message-ID: <C5385EEB.1EEDA%[email protected]<C5385EEB.1EEDA%[email protected]>
Quoted 1 line
Content-Type: text/plain; charset="US-ASCII"
Quoted 1 line · Jens Axboe
Quoted 1 line
The medium- to long-term issue is just to make sure that Jeremy's port
of
Quoted 1 line
Quoted 1 line
blkback into upstream Linux (which he's probably working on at the
moment)
Quoted 1 line
Quoted 1 line
doesn't perpetuate the bio violations. But I guess we should fix 2.6.18
too
Quoted 6 lines
Quoted 2 lines
since others base their own Xen patchsets on it still (e.g., for dom0 support).
Ah thanks! Perhaps we can talk Joe into snipping the
bio_alloc()changes out of his patch #2 - Joe, just thebio_alloc()andsubmit_bio()stuff, you don't have to include thebio_setchanges.But Joe's patch still queues up bios into an array, the same as ever?
-- Keir
------------------------------
Message: 4
Date: Thu, 06 Nov 2008 09:26:32 +0000
From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] [patch 0/6] xenblk: AddO_DIRECTandO_SYNC
support.
To: Jens Axboe <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>,[email protected], [email protected], [email protected], Joe Jin <[email protected]>, [email protected], [email protected]Message-ID: <C53868C8.1EFEE%[email protected]<C53868C8.1EFEE%[email protected]>
Quoted 1 line
Content-Type: text/plain; charset="US-ASCII"
Quoted 16 lines · Jens Axboe
I guess he needs that for waiting on them, but it really should just do:
struct bio *bio = NULL; loop { if (bio) { submit_bio(bio, ...); bio = NULL; } bio = bio_alloc(...); ... } if (bio) submit_bio(bio, ...);Quoted 1 line
and be done with it.
Yes, I can put together a patch for that easily enough, I think.
-- Keir
------------------------------
Message: 5
Date: Thu, 6 Nov 2008 05:16:58 -0500
From: "Ashish Bijlani" <[email protected]>
Subject: Re: [Xen-devel] mmx sse emulation
To: [email protected]
Message-ID:<[email protected]>Content-Type: text/plain; charset=ISO-8859-1
in an attempt to emulate mmx/sse instructions from within xen, i tried setting EM and NE bit in CR0 to have mmx/sse instructions fault into xen. however, the hvm guest doesn't boot after that. also, i don't get any "
device_not_available_fault" any ideas what could be wrong? am i missing something?this is what i've done :-
int
hvm_set_cr0(unsigned long value){
...
value &= ~HVM_CR0_GUEST_RESERVED_BITS;value |= (
X86_CR0_EM|X86_CR0_NE); // EMULATE FPU/* ET is reserved and should be always be 1. */
value |=X86_CR0_ET;
...
}I run system with dom0 4 vcpus on 0-2 cpu cores and hvm 1 vcpu on the 3rd cpu core
-Ashish
Quoted 8 lines · mats petersson
2008/11/5 Ashish Bijlani <[email protected]>
Quoted 7 lines
If I'm not wrong, Bochs emulates SSE/MMX instructions and qemu uses dynamic translation. Does this mean that I use SSE/MMX emulation code from Bochs to put under
x86_emulate? or am I missing something? Thanks.On Wed, Nov 5, 2008 at 5:34 AM, Ashish Bijlani <
Quoted 11 lines
Quoted 8 lines
Quoted 7 lines · wrote:
Hi Andre,
You are absolutely right. All hardware virtualization capable machines have recent simd technology built-in. However, I'm just trying to evaluate a case when HVM guests rely on the virtual hardware platform and not on the actual hardware platform. Precisely, what would be the performance gain/loss if hypervisor has to emulate the functionality.
The performance loss would be HUGE. First of all, you'd fall into the hypervisor and get back out again, which takes a fair few cycles (like
more
Quoted 2 lines
than 100x or more that of a single instruction). Then you have to emulate the actual instruction itself, which will be the small part of the
ovehead.
Quoted 2 lines
Many SSE/MMX/3DNow! instructions execute in 1-2 clockcycles. My guess
would
Quoted 1 line
be that it would reduce any SSE optimized code to a crawl (like in the
order
Quoted 1 line
of 100-1000x slower). Such an application would be much better off
running
Quoted 3 lines
in x87 mode.
I was looking at doing SSE/MMX emulation in
x86_emulatea long time ago,but
Quoted 20 lines
the purpose of that wasn't to emulate SSE/MMX as such, but rather allow SSE/MMX to access emulated hardware (such as video memory).
--
MatsQuoted 15 lines
-Ashish
Quoted 10 lines · Andre Przywara
Quoted 6 lines · Ashish Bijlani
Hi,
I want to emulate mmx/sse for hvm guests when applications inside hvm guests are compiled for mmx/sse but the underlying hardware doesn't support mmx/sse.
First: HVM guests require a virtualization capable processor. AFAIK all these processors support at least SSE2 (if not SSE3). So why do you
want
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
to
emulate these instructions?
Second: Applications should check the CPUID bit before usinginstruction
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
set
extension. So, if the host processor does not support MMX/SSE, theguest
Quoted 29 lines
Quoted 21 lines
Quoted 21 lines
shouldn't see this bit, too. And I doubt that you are faster with emulating
SSE compared to legacy x87-FPU executed natively.So, what is the use-case of your proposal? Or am I missing something here?
Regards,
Andre.Quoted 10 lines
What is the best place to do this? i'm looking at
x86_emulatebut i dunno if that is the best place to put the emulation layer. any suggestions?? also, currently movq emulation is present inx86_emulatefor handling mmio. however, i realized thatget_fpufails if the hardware doesn't have mmx capability. is it true or am i missing something here?Thanks,
AshishQuoted 7 lines
Quoted 6 lines
--
Andre Przywara
AMD-OSRC (Dresden)
Tel: x84917Quoted 6 lines
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel------------------------------
Message: 6
Date: Thu, 06 Nov 2008 10:33:48 +0000
From: Keir Fraser <[email protected]>
Subject: Re: [Xen-devel] [patch 0/6] xenblk: AddO_DIRECTandO_SYNC
support.
To: Jens Axboe <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>,[email protected], [email protected], [email protected], Joe Jin <[email protected]>, [email protected], [email protected]Message-ID: <C538788C.1EFF4%[email protected]<C538788C.1EFF4%[email protected]>
Quoted 1 line
Content-Type: text/plain; charset="US-ASCII"
Quoted 7 lines · Jens Axboe
Quoted 3 lines
Quoted 1 line
and be done with it.
Yes, I can put together a patch for that easily enough, I think.
Should be easy enough. Also be sure to defer any unplugging of the device until the very end, to still make a lot of room for merging and sorting.
http://xenbits.xensource.com/staging/linux-2.6.18-xen.hg c/s 723
-- Keir
------------------------------
Message: 7
Date: Thu, 6 Nov 2008 10:51:57 +0000
From: Tim Deegan <[email protected]>
Subject: Re: [Xen-devel] debuggers andhap_gva_to_gfn()in
guest_walk.c
To: Keir Fraser <[email protected]>
Cc: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-1Quoted 2 lines · Keir Fraser
This looks like a bug in
hap_gva_to_gfn(). It should probably be usinggfn_to_mfn()rather thangfn_to_mfn_current(). Tim, can you confirm?In the current codebase, it's correct (all callers of
paging_gva_to_gfn()call with v == current) but changing it to usegfn_to_mfn()seems more correcter.Tim.
Quoted 4 lines · Mukesh Rathor
Quoted 3 lines
Debugger/s would like to keep it's #ifdefs in xen minimal. Following
would
Quoted 11 lines
Quoted 11 lines
help...
hap_gva_to_gfn():(quoted diff) +3
-0+ if (v== current) mfn = mfn_x(gfn_to_mfn_current(gpfn, &p2mt)); + else + mfn = mfn_x(gfn_to_mfn_foreign(v->domain, gpfn, &p2mt));Quoted 10 lines
Quoted 8 lines
Thanks,
Mukesh_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel--
Tim Deegan <[email protected]>
Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]------------------------------
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-develEnd of Xen-devel Digest, Vol 45, Issue 22
*****************************************
Signature · 1 line
youcef
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi,
I am new in xen developing and I want adding timers in the VMM (hypervisor) but I remark that we can't add methodes whitch print in files !!
Is there a solution or alternative ?
best regards.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel