Re: [SeaBIOS] Little help with call32

2012-04-26 Thread Daniel Castro
On Tue, Apr 24, 2012 at 8:33 AM, Kevin O'Connor wrote: > On Mon, Apr 23, 2012 at 03:51:10PM +0900, Daniel Castro wrote: >> Hello All, >> >> I have a small problem with call32, after I make the call and the >> 32bit code is executed the parameter I am sending is

[SeaBIOS] Little help with call32

2012-04-22 Thread Daniel Castro
ted in different addreses in 16 and 32 bit modes. Can someone help me out to find where the mistake is. The code seems to be valid so I guess I am passing the pointer wrongly. Thanks, Daniel -- +-=---+ | +-+ | This space int

Re: [SeaBIOS] From 16 bit to 32bit

2012-04-12 Thread Daniel Castro
On Thu, Apr 12, 2012 at 9:34 AM, Kevin O'Connor wrote: > On Wed, Apr 11, 2012 at 09:09:44PM +0900, Daniel Castro wrote: >> Hello All, >> >> Since the hypercall on 16bit is not working, how can I transition the >> CPU to 32bit while doing the I/O stuff. >> And

[SeaBIOS] From 16 bit to 32bit

2012-04-11 Thread Daniel Castro
. -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +-+ ___ SeaBIOS mailing list

[SeaBIOS] Virtual Machine Crash on Hypercall

2012-04-10 Thread Daniel Castro
ory" ); \ (type)__res;\ }) I guess the something is being passed wrong to the call, and the return address is damaged... Daniel -- +-=---+ | +-----+ | This space intentionally

Re: [SeaBIOS] Wrong address returned by container _of macro

2012-04-07 Thread Daniel Castro
On Fri, Apr 6, 2012 at 9:57 PM, Kevin O'Connor wrote: > On Wed, Apr 04, 2012 at 04:04:54PM +0900, Daniel Castro wrote: >> Hello All, >> >> I have a little problem, when I try to get my drive on boot (16bit) I >> am getting the wrong address: >> >> This

Re: [SeaBIOS] Wrong address returned by container _of macro

2012-04-06 Thread Daniel Castro
On Wed, Apr 4, 2012 at 4:04 PM, Daniel Castro wrote: > Hello All, > > I have a little problem, when I try to get my drive on boot (16bit) I > am getting the wrong address: > > This code: >        struct xendrive_s * xendrive = > GLOBALFLAT2GLOBAL(container_of(GET_GLO

[SeaBIOS] Wrong address returned by container _of macro

2012-04-04 Thread Daniel Castro
+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +-+ ___ SeaBIOS mailing list SeaBIOS@seabios.org

Re: [SeaBIOS] 16 Segementation help

2012-03-15 Thread Daniel Castro
Thank you vey much Kovin, Sorry about that, let me then complement the code to make it more accurate to the one I am using. On Thu, Mar 15, 2012 at 9:42 PM, Kevin O'Connor wrote: > On Thu, Mar 15, 2012 at 07:33:10PM +0900, Daniel Castro wrote: >> Kevin, I greatly appreciate your

Re: [SeaBIOS] 16 Segementation help

2012-03-15 Thread Daniel Castro
000fd630 and an int 4. I know there are several ways to represent the same address using segmentation. Some clues on my mistakes please? Thanks a million. Daniel On Wed, Mar 14, 2012 at 9:20 AM, Kevin O'Connor wrote: > On Tue, Mar 13, 2012 at 06:44:19PM +0900, Daniel Castro wrote: >

[SeaBIOS] 16 Segementation help

2012-03-13 Thread Daniel Castro
container_of in 16bit code? Thanks in advance and sorry for bothering so much. Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes

[SeaBIOS] Help using a macro in 16bit code

2012-03-06 Thread Daniel Castro
ing. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +-+ ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] First access to the block drive

2012-03-05 Thread Daniel Castro
On Mon, Mar 5, 2012 at 4:18 AM, Kevin O'Connor wrote: > On Thu, Mar 01, 2012 at 05:39:25PM +0900, Daniel Castro wrote: >> Hello all, >> >> The xen pv drivers are almost done. >> >> When I start the booting process from hda seabios tries to read lba at >>

[SeaBIOS] First access to the block drive

2012-03-01 Thread Daniel Castro
drive and a command such as listed in drive.h? Is this normal? Am I missing something? Thanks, Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant

[SeaBIOS] How to Debug read operation on hda

2012-02-28 Thread Daniel Castro
-- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes

Re: [SeaBIOS] Time for a new release?

2012-02-14 Thread Daniel Castro
n/listinfo/seabios -- +-=-------+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +-+

[SeaBIOS] Relation between PCI device and Xenstore Device

2012-02-14 Thread Daniel Castro
corresponds to XEN. Some light on this small issue? Thanks for the help. Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes

Re: [SeaBIOS] Problem with Debug lvl under XEN

2012-02-14 Thread Daniel Castro
On Tue, Feb 14, 2012 at 7:08 PM, Ian Campbell wrote: > On Tue, 2012-02-14 at 00:33 +, Kevin O'Connor wrote: >> On Mon, Feb 13, 2012 at 08:50:56PM +, Ian Campbell wrote: >> > On Mon, 2012-02-13 at 23:21 +0900, Daniel Castro wrote: >> > > Hello, >>

[SeaBIOS] Is there a limit on the stack

2012-02-13 Thread Daniel Castro
erate a fault, so my guess is that the pointer was lost somehow in the stack. Any ideas? Thanks, Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programm

Re: [SeaBIOS] Problem with Debug lvl under XEN

2012-02-13 Thread Daniel Castro
On Tue, Feb 14, 2012 at 5:50 AM, Ian Campbell wrote: > On Mon, 2012-02-13 at 23:21 +0900, Daniel Castro wrote: >> Hello, >> >> I have encountered something a little strange, if I set up the debug >> lvl to 3 or more Y will get a Triple VCPU fault. If I set it to 1 the

[SeaBIOS] Problem with Debug lvl under XEN

2012-02-13 Thread Daniel Castro
still get the fault. Any ideas why? Thanks for the ideas/pointers/ anything! Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U

[SeaBIOS] Question on block driver operation buffer

2011-11-01 Thread Daniel Castro
determine the size? Thanks, Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes

[SeaBIOS] Question on virtual block device

2011-10-27 Thread Daniel Castro
, but from the xen perspective how can I get them? pure math/translation? Thanks, Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U

[SeaBIOS] Little help with 16bit code

2011-10-23 Thread Daniel Castro
he prototype is almost complete... Thanks again, Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +-+ __

Re: [SeaBIOS] Help with 16bit and 32bitFlat

2011-10-20 Thread Daniel Castro
ly want to use the 16Bit for the proccess_op, then only place I have no idea if it will work (not that I see why not) is doing a hypercall when I have to signal the RING that there is a request in flight. > -Kevin > -- +-=---+ | +

Re: [SeaBIOS] Help with 16bit and 32bitFlat

2011-10-20 Thread Daniel Castro
On Thu, Oct 20, 2011 at 9:38 AM, Kevin O'Connor wrote: > On Wed, Oct 19, 2011 at 04:08:06PM +0900, Daniel Castro wrote: >> In the makefile I have included in SRC32FLAT xen-blk.c to run my code, >> if I put it in SRCBOTH the following error is displayed. >> 32bit flat ini

[SeaBIOS] block device process_op question

2011-10-19 Thread Daniel Castro
time, Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes

[SeaBIOS] Help with 16bit and 32bitFlat

2011-10-19 Thread Daniel Castro
e intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +-+ ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seab

Re: [SeaBIOS] Help with struct disk_op_s and block drives

2011-10-18 Thread Daniel Castro
On Fri, Oct 14, 2011 at 8:22 AM, Kevin O'Connor wrote: > On Thu, Oct 13, 2011 at 09:17:51PM +0900, Daniel Castro wrote: >> Hello, >> I am working on the PV block drivers for Xen. >> >> I am in the point where I must write to my PV ring the requests and >>

[SeaBIOS] Help with struct disk_op_s and block drives

2011-10-13 Thread Daniel Castro
notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +-+ ___ SeaBIOS mailing list SeaBIOS@seabios.org http://www.seabios.org/mailman/listinfo/seabios

Re: [SeaBIOS] [PATCH 00/10] Xenstore communication support for Seabios

2011-08-29 Thread Daniel Castro
On Wed, Aug 24, 2011 at 10:10 AM, Kevin O'Connor wrote: > On Fri, Aug 19, 2011 at 01:08:57AM +0900, Daniel Castro wrote: >> As part of Google Summer of Code we are in the process to add Block >> PV-drivers to Seabios, in order to this, first we have to be able to >> co

Re: [SeaBIOS] [PATCH 00/10] Xenstore communication support for Seabios

2011-08-29 Thread Daniel Castro
ific file in the xen headers. It will make it easier to read and understand. > > -Kevin > -- +-=---+ | +-----+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes                         | +---

[SeaBIOS] [PATCH 10/10] Xen: Xenstore example -do not apply

2011-08-18 Thread Daniel Castro
first vbd but we leave a clue that there may be more. Signed-off-by: Daniel Castro --- src/xen-xs.c | 10 +- src/xen-xs.h |1 + 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/src/xen-xs.c b/src/xen-xs.c index d4b6b26..1173ce2 100644 --- a/src/xen-xs.c +++ b/src/xen

[SeaBIOS] [PATCH 09/10] Xen: Xenstore communication via xenbus

2011-08-18 Thread Daniel Castro
Communication with Xenstore is now possible via xenbus. Initially only xenstore_read and xenstore_directory are provided, but more operations will be added. Xenbus rings are initialized on post.c hardware init. Signed-off-by: Daniel Castro --- Makefile |2 +- src/post.c |2 + src

[SeaBIOS] [PATCH 05/10] Xen: Support for HVM_op Hypercall

2011-08-18 Thread Daniel Castro
Added support for hvm_op and hvm_params hypercalls. Signed-off-by: Daniel Castro --- src/xen.h | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/src/xen.h b/src/xen.h index b6b72b9..9e218fc 100644 --- a/src/xen.h +++ b/src/xen.h @@ -188,6

[SeaBIOS] [PATCH 03/10] Xen: Use PAGE_SHIFT as a constant

2011-08-18 Thread Daniel Castro
PAGE_SHIFT can now be used as a contant instead of "<< 12". Signed-off-by: Daniel Castro --- src/xen.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/xen.c b/src/xen.c index 4072793..5e93a41 100644 --- a/src/xen.c +++ b/src/xen.c @@ -96

[SeaBIOS] [PATCH 04/10] Xen: Support for interdomain event channel

2011-08-18 Thread Daniel Castro
Added support for interdomain event_channels headers Signed-off-by: Daniel Castro --- src/xen.h | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/xen.h b/src/xen.h index f65078a..b6b72b9 100644 --- a/src/xen.h +++ b/src/xen.h @@ -99,6 +99,7

[SeaBIOS] [PATCH 07/10] Xen: Support for sched_op hypercall

2011-08-18 Thread Daniel Castro
Adds support for CPU yield operation until event arrives. Signed-off-by: Daniel Castro --- src/xen.h | 41 + 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/src/xen.h b/src/xen.h index de2b1ef..b70593a 100644 --- a/src/xen.h +++ b/src

[SeaBIOS] [PATCH 01/10] Xen: Guest Handlers and Copyrights

2011-08-18 Thread Daniel Castro
These are used as part of the Xen hypercall interfaces. Signed-off-by: Daniel Castro --- src/xen.h | 61 ++--- 1 files changed, 58 insertions(+), 3 deletions(-) diff --git a/src/xen.h b/src/xen.h index 0ed1e9f..f65078a 100644 --- a/src

[SeaBIOS] [PATCH 08/10] Xen: Shared info for CPU yield support and xenbus protocol

2011-08-18 Thread Daniel Castro
Shared info page added to complete the functionality to yield the CPU while waiting for event arrival this is used in xenbus. Xenbus protocol are the structs needed for a xenbus implementation, they are defined in this patch but will be used later on. Signed-off-by: Daniel Castro --- src

[SeaBIOS] [PATCH 06/10] Xen: Support for memory_op Hypercall

2011-08-18 Thread Daniel Castro
Adds support via hypercalls to change memory mapping, get shared_info and get the grant table from the hypervisor. Signed-off-by: Daniel Castro --- src/xen.h | 41 + 1 files changed, 41 insertions(+), 0 deletions(-) diff --git a/src/xen.h b/src/xen.h

[SeaBIOS] [PATCH 00/10] Xenstore communication support for Seabios

2011-08-18 Thread Daniel Castro
this guide for this: http://wiki.xensource.com/xenwiki/QEMUUpstream Some more documentation on this can be found here: http://wiki.xensource.com/xenwiki/SeaBIOS Daniel Castro (10): Xen: Guest Handlers and Copyrights Move PAGE_SHIFT to memmap.h Xen: Use PAGE_SHIFT as a constant Xen: Support

[SeaBIOS] [PATCH 02/10] Move PAGE_SHIFT to memmap.h

2011-08-18 Thread Daniel Castro
PAGE_SHIFT is used by both Virtio and Xen as a contant when moving addresses from guest space to machine space, in order to have a single definition PAGE_SHIFT has been moved to memmap.h. This has no impact on neither virtio or xen. Signed-off-by: Daniel Castro --- src/memmap.h |2

[SeaBIOS] Ideas for PV on SeaBIOS

2011-05-18 Thread Daniel Castro
. Daniel -- +-=---+ | +-+ | This space intentionally blank for notetaking. | |   | Daniel Castro,                | | |   | Consultant/Programmer.| | |   | U Andes

[SeaBIOS] Xen Hypervisor and Disk Drive Layer

2011-05-02 Thread Daniel Castro
Greetings, My Name is Daniel Castro, I am working with the Xen Hypervisor Community in order to change our existing BIOS for SeaBIOS. For now we are interested to modify the int 13 where the higher level disk driver abstraction resides, We will plug into it in order to communicate via shared