Skip to contentSkip to conversation

PV on HVM Xen

PATCH Boris Derzhavets 3 participants 33 messages Mar 12, 2010 – Mar 16, 2010

lore
Share & tools
lore
#0 lore raw

Is there any kernel branch having PV on HVM already applied and ready for testing (under 4.0-rc6)  ?

Boris.

--- On Fri, 3/12/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Sheng Yang" <[email protected]>
Cc: "Fitzhardinge" <[email protected]>, "[email protected]" <[email protected]>, [email protected], "Stefano Stabellini" <[email protected]>, "[email protected]" <[email protected]>, "Ian Pratt" <[email protected]>, "Fraser" <[email protected]>, [email protected]
Date: Friday, March 12, 2010, 5:42 AM

Quoted 11 lines · Sheng Yang
Quoted 1 line · On Wednesday 10 March 2010 23:46:54 Stefano Stabellini wrote:

Hi all,

Stefano,

And next time when you send out the patch, please be more respect to my work.

You dropped all the original author(me) of patchset, and only add a sign-off for me. If you don't aware the difference, here is a snippet of linux/Documentation/SummittingPatches

I am truly sorry and apologise for it, I would never want to give you the impression of being disrespectful of you and your work. If you pay attention I manually wrote in the comments of all the past versions of the patches that you were the original author, this time I just forgot.
I guess it is really the time I start using git-send-email :)

Your work has been really important for my series and you deserve the credit for it independently from which patch series gets applied.

Quoted 8 lines

Another thing is, you were keeping using my old patches as your base, while I was working with the reviewers to update the patch quickly. I don't think that's a kind of respect to both reviewers' and my work. You would duplicate reviewer's effect, especially you always repost the whole patch(and drop my authorship) rather than the different part. I've split patches in order to provide a code base for further development, but you complete ignored them and keeping post the whole patchset based on my old patches.

I don't keep using your old patches as a base but I manually rebase over the most recent patch series you sent every time.
Obviously it is not a perfect system and sometimes I can miss something, this is why at the beginning I asked you to work together on the same
tree: I wanted to avoid exactly this sort of issues.

My intentions are true so my proposal of working on a common tree is still valid, just let me know when you are interested.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 3 lines · Boris Derzhavets

Is there any kernel branch having PV on HVM already applied and ready for testing (under 4.0-rc6)  ?

xen/pvhvm-stefano - my patch series (based on Sheng's work) xen/pvhvm-sheng - Sheng's patch series

in both cases you need the corresponding patch for xen, in my case it is this one:

http://lists.xensource.com/archives/html/xen-devel/2010-03/msg00452.html

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw

I've applied attached patch to the most recent clone of xen-unstable.hg Checked out branch xen/pvhvm-stefano and built 2.6.31.6 pvops kernel based on this branch.
Xen Host reboots right away.

Boris.

--- On Fri, 3/12/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "Fitzhardinge" <[email protected]>, "Stefano Stabellini" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Friday, March 12, 2010, 6:59 AM

Quoted 3 lines · Boris Derzhavets

Is there any kernel branch having PV on HVM already applied and ready for testing (under 4.0-rc6)  ?

xen/pvhvm-stefano - my patch series (based on Sheng's work) xen/pvhvm-sheng - Sheng's patch series

in both cases you need the corresponding patch for xen, in my case it is this one:

http://lists.xensource.com/archives/html/xen-devel/2010-03/msg00452.html

-----Inline Attachment Follows-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 4 lines · Boris Derzhavets

I've applied attached patch to the most recent clone of xen-unstable.hg Checked out branch xen/pvhvm-stefano and built 2.6.31.6 pvops kernel based on this branch.
Xen Host reboots right away.

Do you have the xen backends enabled in your config file? If so, could you please try to disable them?

#4 lore raw

Sorry for stupid question. I believe /etc/xen/xend-config.sxp should be updated.  How to do that ?

Boris.

--- On Fri, 3/12/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "Fitzhardinge" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Friday, March 12, 2010, 10:08 AM

Quoted 4 lines · Boris Derzhavets

I've applied attached patch to the most recent clone of xen-unstable.hg Checked out branch xen/pvhvm-stefano and built 2.6.31.6 pvops kernel based on this branch.
Xen Host reboots right away.

Do you have the xen backends enabled in your config file? If so, could you please try to disable them?

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
In reply to Boris Derzhavets
Quoted 5 lines · Boris Derzhavets

I've applied attached patch to the most recent clone of xen-unstable.hg Checked out branch xen/pvhvm-stefano and built 2.6.31.6 pvops kernel based on this branch.
Xen Host reboots right away.

Can you tell whether its Xen itself crashing, or if the dom0 kernel is crashing?

Once Xen is patched, it should be sufficient to run a patched domU hvm kernel (you don't need to update your dom0 kernel).

J

#6 lore raw

Hard to say. Just black screen with no output and reboot. Usually when Xen comes up and Dom0 crashes , there is some screen printout, in my case nothing on the screen. Serial console is required again :(

Boris.

--- On Fri, 3/12/10, Jeremy Fitzhardinge <[email protected]> wrote:

From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Friday, March 12, 2010, 3:10 PM

Quoted 5 lines · Boris Derzhavets

I've applied attached patch to the most recent clone of xen-unstable.hg Checked out branch xen/pvhvm-stefano and built 2.6.31.6 pvops kernel based on this branch.
Xen Host reboots right away.

Can you tell whether its Xen itself crashing, or if the dom0 kernel is crashing?

Once Xen is patched, it should be sufficient to run a patched domU hvm kernel (you don't need to update your dom0 kernel).

    J

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#7 lore raw
Quoted 4 lines · Boris Derzhavets

Hard to say. Just black screen with no output and reboot. Usually when Xen comes up and Dom0 crashes , there is some screen printout, in my case nothing on the screen. Serial console is required again :(

Did you update your dom0, or just Xen?

J

#8 lore raw

Yes , i've checked out branch "xen/pvhvm-stefano"  to build kernel for load under patched Xen.

Boris.

--- On Fri, 3/12/10, Jeremy Fitzhardinge <[email protected]> wrote:

From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Stefano Stabellini" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Friday, March 12, 2010, 4:22 PM

Quoted 4 lines · Boris Derzhavets

Hard to say. Just black screen with no output and reboot. Usually when Xen comes up and Dom0 crashes , there is some screen printout, in my case nothing on the screen. Serial console is required again :(

Did you update your dom0, or just Xen?

    J

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#9 lore raw
In reply to Jeremy Fitzhardinge

Per yours feed it seems it makes sense try load patched Xen 4-0.rc6 with 2.6.32.9 (stable).  It would be a fair . Right ?

Boris.

--- On Fri, 3/12/10, Jeremy Fitzhardinge <[email protected]> wrote:

From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "Stefano Stabellini" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Friday, March 12, 2010, 3:10 PM

Quoted 5 lines · Boris Derzhavets

I've applied attached patch to the most recent clone of xen-unstable.hg Checked out branch xen/pvhvm-stefano and built 2.6.31.6 pvops kernel based on this branch.
Xen Host reboots right away.

Can you tell whether its Xen itself crashing, or if the dom0 kernel is crashing?

Once Xen is patched, it should be sufficient to run a patched domU hvm kernel (you don't need to update your dom0 kernel).

    J

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#10 lore raw
Quoted 2 lines · Boris Derzhavets

Per yours feed it seems it makes sense try load patched Xen 4-0.rc6 with 2.6.32.9 (stable). It would be a fair . Right ?

Yes, that should work. There's no need for dom0 to have either Stefano's or Sheng's patches.

J

#11 lore raw

Yes.
I can load 2.6.32.9 ( been built via xen/stable just now) under then most recent Xen 4.0 (matching tip CS Xen's rpms have been rebuilt and reinstalled on F12 following Michael Young ) via clone of original xen-unstable tree patched per Steffano :-
http://lists.xensource.com/archives/html/xen-devel/2010-03/msg00452.html

Boris.

--- On Fri, 3/12/10, Jeremy Fitzhardinge <[email protected]> wrote:

From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "Stefano Stabellini" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Friday, March 12, 2010, 4:29 PM

Quoted 2 lines · Boris Derzhavets

Per yours feed it seems it makes sense try load patched Xen 4-0.rc6 with 2.6.32.9 (stable).  It would be a fair . Right ?

Yes, that should work.  There's no need for dom0 to have either Stefano's or Sheng's patches.

    J

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#12 lore raw
Quoted 4 lines · Boris Derzhavets

Yes.
I can load 2.6.32.9 ( been built via xen/stable just now) under then most recent Xen 4.0 (matching tip CS Xen's rpms have been rebuilt and reinstalled on F12 following Michael Young ) via clone of original xen-unstable tree patched per Steffano :-
http://lists.xensource.com/archives/html/xen-devel/2010-03/msg00452.html

Are you saying that a patched Xen with unpatched dom0 does not crash, but patched dom0 does crash?

J

#13 lore raw

Yes. That's what i see on my box.

Boris.

--- On Fri, 3/12/10, Jeremy Fitzhardinge <[email protected]> wrote:

From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Friday, March 12, 2010, 5:11 PM

Quoted 4 lines · Boris Derzhavets

Yes.
I can load 2.6.32.9 ( been built via xen/stable just now) under then most recent Xen 4.0 (matching tip CS Xen's rpms have been rebuilt and reinstalled on F12 following Michael Young ) via clone of original xen-unstable tree patched per Steffano :-
http://lists.xensource.com/archives/html/xen-devel/2010-03/msg00452.html

Are you saying that a patched Xen with unpatched dom0 does not crash, but patched dom0 does crash?

    J

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#14 lore raw
Quoted 2 lines · Boris Derzhavets

Yes. That's what i see on my box.

OK, over to you Stefano. Why is Boris seeing an instacrash in dom0 with your patches in place?

J

Quoted 31 lines

Boris.

--- On *Fri, 3/12/10, Jeremy Fitzhardinge /<[email protected]>/* wrote:

From: Jeremy Fitzhardinge <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Friday, March 12, 2010, 5:11 PM

On 03/12/2010 02:08 PM, Boris Derzhavets wrote:
> Yes.
> I can load 2.6.32.9 ( been built via xen/stable just now) under then most recent Xen 4.0 (matching tip CS Xen's rpms have been rebuilt and reinstalled on F12 following Michael Young ) via clone of original xen-unstable tree patched per Steffano :-
>
http://lists.xensource.com/archives/html/xen-devel/2010-03/msg00452.html
>

Are you saying that a patched Xen with unpatched dom0 does not crash, but patched dom0 does crash?

J

#15 lore raw
Quoted 7 lines · Jeremy Fitzhardinge
Quoted 2 lines · Boris Derzhavets

Yes. That's what i see on my box.

OK, over to you Stefano. Why is Boris seeing an instacrash in dom0 with your patches in place?

I think it might be a problem of the old "enhanced" patch series; surely this bug cannot affect the new series because the same kernel cannot be used for dom0 and domU anymore (the new series is applied to a clean 2.6.32 kernel).

Boris, could you please checkout the new branch pvhvm-stefano and see if it works for you as an HVM DomU?
The xen side patch is still required.

#16 lore raw
Quoted 3 lines

Boris, could you please checkout the new branch pvhvm-stefano and see if it works for you as an HVM DomU?
The xen side patch is still required.

Yes

Boris

--- On Mon, 3/15/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Boris Derzhavets" <[email protected]>, "[email protected]" <[email protected]>, "Stabellini" <[email protected]>, [email protected], "Sheng Yang" <[email protected]>
Date: Monday, March 15, 2010, 11:53 AM

Quoted 7 lines · Jeremy Fitzhardinge
Quoted 2 lines · Boris Derzhavets

Yes. That's what i see on my box.

OK, over to you Stefano.  Why is Boris seeing an instacrash in dom0 with your patches in place?

I think it might be a problem of the old "enhanced" patch series; surely this bug cannot affect the new series because the same kernel cannot be used for dom0 and domU anymore (the new series is applied to a clean 2.6.32 kernel).

Boris, could you please checkout the new branch pvhvm-stefano and see if it works for you as an HVM DomU?
The xen side patch is still required.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#17 lore raw

What is branch xen/pvhvm-stefano ?

In reply to Stefano Stabellini

Do you mean check out xen/pvhvm-stefano. Build Dom0 kernel based on this branch. Load under patched Hypervisor and try to create HVM DOMU.

Please confirm. Maybe you mean something else ?

Boris

--- On Mon, 3/15/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Boris Derzhavets" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Monday, March 15, 2010, 11:53 AM

Quoted 7 lines · Jeremy Fitzhardinge
Quoted 2 lines · Boris Derzhavets

Yes. That's what i see on my box.

OK, over to you Stefano.  Why is Boris seeing an instacrash in dom0 with your patches in place?

I think it might be a problem of the old "enhanced" patch series; surely this bug cannot affect the new series because the same kernel cannot be used for dom0 and domU anymore (the new series is applied to a clean 2.6.32 kernel).

Boris, could you please checkout the new branch pvhvm-stefano and see if it works for you as an HVM DomU?
The xen side patch is still required.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#18 lore raw

Re: What is branch xen/pvhvm-stefano ?

Sorry for one more question :

origin/xen/pvhvm-stefano
origin/xen/pvhvm-stefano-rebase

which one ?

Boris.

--- On Mon, 3/15/10, Boris Derzhavets <[email protected]> wrote:

From: Boris Derzhavets <[email protected]>
Subject: [Xen-devel] What is branch xen/pvhvm-stefano ?
To: "Jeremy Fitzhardinge" <[email protected]>, "Stefano Stabellini" <[email protected]>
Cc: "[email protected]" <[email protected]>, "Stefano Stabellini" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Monday, March 15, 2010, 12:33 PM

Do you mean check out xen/pvhvm-stefano. Build Dom0 kernel based on this branch. Load under patched Hypervisor and try to create HVM DOMU.

Please confirm. Maybe you mean something else ?

Boris

--- On Mon, 3/15/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Boris Derzhavets" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Monday, March 15, 2010, 11:53
AM

Quoted 7 lines · Jeremy Fitzhardinge
Quoted 2 lines · Boris Derzhavets

Yes. That's what i see on my box.

OK, over to you Stefano.  Why is Boris seeing an instacrash in dom0 with your patches in place?

I think it might be a problem of the old "enhanced" patch series; surely this bug cannot affect the new series because the same kernel cannot be used for dom0 and domU anymore (the new series is applied to a clean 2.6.32 kernel).

Boris, could you please checkout the new branch pvhvm-stefano and see if it works for you as an HVM DomU?
The xen side patch is still required.

-----Inline Attachment Follows-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#19 lore raw

Re: What is branch xen/pvhvm-stefano ?

Quoted 5 lines · Boris Derzhavets

Sorry for one more question :

origin/xen/pvhvm-stefano
origin/xen/pvhvm-stefano-rebase

both should be OK, just go for the first

#20 lore raw

Re: What is branch xen/pvhvm-stefano ?

In reply to Boris Derzhavets
Quoted 5 lines · Boris Derzhavets

Do you mean check out xen/pvhvm-stefano. Build Dom0 kernel based on this branch. Load under patched Hypervisor and try to create HVM DOMU.

Please confirm. Maybe you mean something else ?

I mean:

- check out xen/pvhvm-stefano;
- build HVM domU kernel based on this branch;
- try to create HVM DOMU (with a patched hypervisor).

#21 lore raw

Re: What is branch xen/pvhvm-stefano ?

- check out xen/pvhvm-stefano;
- build HVM domU kernel based on this branch;
- try to create HVM DOMU (with a patched hypervisor).

Sorry , i don't know how to create HVM DomU having just a kernel for this DomU I did it only via ISO image of guest system (either python profile or virt-install)

Boris.

--- On Mon, 3/15/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: What is branch xen/pvhvm-stefano ?
To: "Boris Derzhavets" <[email protected]>
Cc: "Jeremy Fitzhardinge" <[email protected]>, "Stefano Stabellini" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Monday, March 15, 2010, 12:49 PM

Quoted 5 lines · Boris Derzhavets

Do you mean check out xen/pvhvm-stefano. Build Dom0 kernel based on this branch. Load under patched Hypervisor and try to create HVM DOMU.

Please confirm. Maybe you mean something else ?

I mean:

- check out xen/pvhvm-stefano;
- build HVM domU kernel based on this branch;
- try to create HVM DOMU (with a patched hypervisor).

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#22 lore raw

Re: What is branch xen/pvhvm-stefano ?

Quoted 7 lines · Boris Derzhavets

- check out xen/pvhvm-stefano;
- build HVM domU kernel based on this branch;
- try to create HVM DOMU (with a patched hypervisor).

Sorry , i don't know how to create HVM DomU having just a kernel for this DomU I did it only via ISO image of guest system (either python profile or virt-install)

An HVM domain is similar to a normal qemu emulated machine, so I meant a kernel that is able to boot on that machine (x86 support, e1000 driver, etc.).

In addition to that if you want to enable PV on HVM you need support for the PV frontends: enable CONFIG_XEN, CONFIG_XEN_BLKDEV_FRONTEND, CONFIG_XEN_NETDEV_FRONTEND, CONFIG_XEN_XENBUS_FRONTEND, CONFIG_XEN_PLATFORM_PCI; avoid the BACKENDs.

#23 lore raw

Re: What is branch xen/pvhvm-stefano ?

If i understand you right. I have to build kernel per your instructions. scp this kernel (say "vmlinux") to Ubuntu Karmic HVM DomU. Login into Ubuntu Karmic HVM DomU and attempt  :-

# ./vmlinux

Boris.
P.S.
Patched Xen 4.0-rc6 & 2.6.32.9 Dom0 already loaded.
Branch xen/pvhvm-stefano checked out and kernel 2.6.32 has been tuned as advised. Now is building. I have not notice any option to activate backends in yours kernel.

--- On Mon, 3/15/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: What is branch xen/pvhvm-stefano ?
To: "Boris Derzhavets" <[email protected]>
Cc: "Stefano Stabellini" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Monday, March 15, 2010, 1:11 PM

Quoted 7 lines · Boris Derzhavets

- check out xen/pvhvm-stefano;
- build HVM domU kernel based on this branch;
- try to create HVM DOMU (with a patched hypervisor).

Sorry , i don't know how to create HVM DomU having just a kernel for this DomU I did it only via ISO image of guest system (either python profile or virt-install)

An HVM domain is similar to a normal qemu emulated machine, so I meant a kernel that is able to boot on that machine (x86 support, e1000 driver, etc.).

In addition to that if you want to enable PV on HVM you need support for the PV frontends: enable CONFIG_XEN, CONFIG_XEN_BLKDEV_FRONTEND, CONFIG_XEN_NETDEV_FRONTEND, CONFIG_XEN_XENBUS_FRONTEND, CONFIG_XEN_PLATFORM_PCI; avoid the BACKENDs.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#24 lore raw

Re: What is branch xen/pvhvm-stefano ?

Quoted 5 lines · Boris Derzhavets

If i understand you right. I have to build kernel per your instructions. scp this kernel (say "vmlinux") to Ubuntu Karmic HVM DomU. Login into Ubuntu Karmic HVM DomU and attempt  :-

# ./vmlinux

Once you have copied the new kernel on the VM you have to edit the grub configuration file in your HVM DomU and point it to the new kernel, as you would do on native.
Then you reboot and you should be able to see one more network card that is the pv network card.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#25 lore raw

Re: What is branch xen/pvhvm-stefano ?

I believe all the stuff starting with "git checkout" would be better to to perform on Ubuntu 9.10 HVM. Kernel build, creating ramdisk ant etc. I built in Dom0 - F12. Not much chance to complete test today (9.23 p.m)

Boris.

--- On Mon, 3/15/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: What is branch xen/pvhvm-stefano ?
To: "Boris Derzhavets" <[email protected]>
Cc: "Stefano Stabellini" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Monday, March 15, 2010, 2:00 PM

Quoted 5 lines · Boris Derzhavets

If i understand you right. I have to build kernel per your instructions. scp this kernel (say "vmlinux") to Ubuntu Karmic HVM DomU. Login into Ubuntu Karmic HVM DomU and attempt  :-

# ./vmlinux

Once you have copied the new kernel on the VM you have to edit the grub configuration file in your HVM DomU and point it to the new kernel, as you would do on native.
Then you reboot and you should be able to see one more network card that is the pv network card.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#26 lore raw

Re: What is branch xen/pvhvm-stefano ?

Quoted 4 lines · Boris Derzhavets

I believe all the stuff starting with "git checkout" would be better to to perform on Ubuntu 9.10 HVM. Kernel build, creating ramdisk ant etc. I built in Dom0 - F12. Not much chance to complete test today (9.23 p.m)

Yeah maybe.

I personally build the kernel on a totally different machine compared to the one I test with, but that is just me.

#27 lore raw

Re: What is branch xen/pvhvm-stefano ?

Attempt to start Ubuntu 9.10 Server HVM with vmlinuz-2.6.32 and initrd-2.6.32.img beeb built at Xen 4.0-rc6 (2.6.32.9 pvops)  Dom0 (F12).

Domain started via virt-manager:-

XENBUS request irq failed 0
IRQ handler type mismatch for IRQ 1
Then system boots up to login prompt, but mouse is dead.

Boris.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#28 lore raw

Re: What is branch xen/pvhvm-stefano ?

Quoted 9 lines · Boris Derzhavets

Attempt to start Ubuntu 9.10 Server HVM with vmlinuz-2.6.32 and initrd-2.6.32.img beeb built at Xen 4.0-rc6 (2.6.32.9 pvops)  Dom0 (F12).

Domain started via virt-manager:-

XENBUS request irq failed 0
IRQ handler type mismatch for IRQ 1
Then system boots up to login prompt, but mouse is dead.

Thanks for testing!
I believe that is a bug that I fixed in my tree but didn't send to the list yet.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#29 lore raw

Re: What is branch xen/pvhvm-stefano ?

Kernel has been built based on the branch from Jermey's Git Repo (xen/pvhvm-stefano) No patching has been done.

Boris.

--- On Tue, 3/16/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: What is branch xen/pvhvm-stefano ?
To: "Boris Derzhavets" <[email protected]>
Cc: "Stefano Stabellini" <[email protected]>, "Jeremy Fitzhardinge" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>
Date: Tuesday, March 16, 2010, 6:48 AM

Quoted 9 lines · Boris Derzhavets

Attempt to start Ubuntu 9.10 Server HVM with vmlinuz-2.6.32 and initrd-2.6.32.img beeb built at Xen 4.0-rc6 (2.6.32.9 pvops)  Dom0 (F12).

Domain started via virt-manager:-

XENBUS request irq failed 0
IRQ handler type mismatch for IRQ 1
Then system boots up to login prompt, but mouse is dead.

Thanks for testing!
I believe that is a bug that I fixed in my tree but didn't send to the list yet.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#30 lore raw
In reply to Jeremy Fitzhardinge
Quoted 7 lines · Jeremy Fitzhardinge
Quoted 2 lines · Boris Derzhavets

Yes. That's what i see on my box.

OK, over to you Stefano. Why is Boris seeing an instacrash in dom0 with your patches in place?

As you might know already, the new patch series works as domU kernel only so this problem doesn't exist anymore.

I decided to chase this bug anyway and it turns out that I was just missing:

@@ -1345,6 +1346,8 @@ void __init xen_guest_init(void)

        int r;
        uint64_t callback_via;

+ if (xen_pv_domain())
+ return;

#31 lore raw

In fact it means if i am on Ubuntu HVM - patch set has to applied to Ubuntu's kernel and "initrd"  rebuilt. HVM reloaded
if i am on Fedora Hvm - patch set has to applied to Fedora's kernel and "initrd" rebuilt HVM reloaded

Boris.

--- On Mon, 3/15/10, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] [PATCH 0 of 5] PV on HVM Xen
To: "Jeremy Fitzhardinge" <[email protected]>
Cc: "Boris Derzhavets" <[email protected]>, "[email protected]" <[email protected]>, "Sheng Yang" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Monday, March 15, 2010, 1:27 PM

Quoted 7 lines · Jeremy Fitzhardinge
Quoted 2 lines · Boris Derzhavets

Yes. That's what i see on my box.

OK, over to you Stefano.  Why is Boris seeing an instacrash in dom0 with your patches in place?

As you might know already, the new patch series works as domU kernel only so this problem doesn't exist anymore.

I decided to chase this bug anyway and it turns out that I was just missing:

@@ -1345,6 +1346,8 @@ void __init xen_guest_init(void) int r;
        uint64_t callback_via;

+       if (xen_pv_domain())
+               return;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#32 lore raw
Quoted 5 lines · Boris Derzhavets

In fact it means if i am on Ubuntu HVM - patch set has to applied to Ubuntu's kernel and "initrd"  rebuilt. HVM reloaded
if i am on Fedora Hvm - patch set has to applied to Fedora's kernel and "initrd" rebuilt HVM reloaded

Correct.
This is true for both the old and the new patch series.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel