[PATCH] Enable amd64 Xen on trunk - Debian

This is a discussion on [PATCH] Enable amd64 Xen on trunk - Debian ; Since trunk is now at 2.6.27 which supports amd64 Xen guest's I thought we could enable CONFIG_XEN for that kernel. I also added some options to the 32 bit config, they are enabled anyway this just makes them that explicit. ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: [PATCH] Enable amd64 Xen on trunk

  1. [PATCH] Enable amd64 Xen on trunk

    Since trunk is now at 2.6.27 which supports amd64 Xen guest's I thought
    we could enable CONFIG_XEN for that kernel. I also added some options to
    the 32 bit config, they are enabled anyway this just makes them that
    explicit.

    any opinions?

    diff --git a/linux-2.6/debian/config/amd64/config b/linux-2.6/debian/config/amd64/config
    index 81ece14..a7258aa 100644
    --- a/linux-2.6/debian/config/amd64/config
    +++ b/linux-2.6/debian/config/amd64/config
    @@ -93,6 +93,13 @@ CONFIG_KVM_INTEL=m
    CONFIG_KVM_AMD=m

    ##
    +## file: arch/x86/xen/Kconfig
    +##
    +CONFIG_XEN=y
    +CONFIG_XEN_MAX_DOMAIN_MEMORY=32
    +CONFIG_XEN_SAVE_RESTORE=y
    +
    +##
    ## file: crypto/Kconfig
    ##
    CONFIG_CRYPTO_AES_X86_64=m
    @@ -176,6 +183,7 @@ CONFIG_BLK_DEV_RAM_SIZE=65536
    CONFIG_CDROM_PKTCDVD=m
    CONFIG_CDROM_PKTCDVD_BUFFERS=8
    # CONFIG_CDROM_PKTCDVD_WCACHE is not set
    +CONFIG_XEN_BLKDEV_FRONTEND=m
    CONFIG_VIRTIO_BLK=m

    ##
    @@ -242,6 +250,7 @@ CONFIG_STALDRV=y
    CONFIG_PRINTER=m
    # CONFIG_LP_CONSOLE is not set
    CONFIG_PPDEV=m
    +CONFIG_HVC_XEN=y
    CONFIG_NVRAM=m
    CONFIG_RTC=y
    CONFIG_GEN_RTC=m
    @@ -506,6 +515,7 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
    CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
    CONFIG_INPUT_JOYDEV=m
    CONFIG_INPUT_EVDEV=m
    +CONFIG_XEN_KBDDEV_FRONTEND=y

    ##
    ## file: drivers/input/gameport/Kconfig
    @@ -931,6 +941,7 @@ CONFIG_R8169=m
    CONFIG_VIA_VELOCITY=m
    CONFIG_TIGON3=m
    CONFIG_BNX2=m
    +CONFIG_XEN_NETDEV_FRONTEND=m
    CONFIG_FDDI=y
    CONFIG_DEFXX=m
    # CONFIG_DEFXX_MMIO is not set
    @@ -1341,6 +1352,7 @@ CONFIG_FB_VOODOO1=m
    CONFIG_FB_TRIDENT=m
    # CONFIG_FB_TRIDENT_ACCEL is not set
    CONFIG_FB_VIRTUAL=m
    +CONFIG_XEN_FBDEV_FRONTEND=y

    ##
    ## file: drivers/video/backlight/Kconfig
    @@ -1404,6 +1416,12 @@ CONFIG_WDT_501_PCI=y
    CONFIG_USBPCWATCHDOG=m

    ##
    +## file: drivers/xen/Kconfig
    +##
    +CONFIG_XEN_BALLOON=y
    +CONFIG_XEN_SCRUB_PAGES=y
    +
    +##
    ## file: fs/partitions/Kconfig
    ##
    CONFIG_ACORN_PARTITION=y
    diff --git a/linux-2.6/debian/config/i386/config b/linux-2.6/debian/config/i386/config
    index ed13748..fb8f5d1 100644
    --- a/linux-2.6/debian/config/i386/config
    +++ b/linux-2.6/debian/config/i386/config
    @@ -158,6 +158,8 @@ CONFIG_LGUEST_GUEST=y
    ## file: arch/x86/xen/Kconfig
    ##
    CONFIG_XEN=y
    +CONFIG_XEN_MAX_DOMAIN_MEMORY=8
    +CONFIG_XEN_SAVE_RESTORE=y

    ##
    ## file: crypto/Kconfig
    @@ -610,6 +612,7 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
    CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
    CONFIG_INPUT_JOYDEV=m
    CONFIG_INPUT_EVDEV=m
    +CONFIG_XEN_KBDDEV_FRONTEND=y

    ##
    ## file: drivers/input/gameport/Kconfig
    @@ -1667,6 +1670,12 @@ CONFIG_USBPCWATCHDOG=m
    CONFIG_BINFMT_AOUT=m

    ##
    +## file: drivers/xen/Kconfig
    +##
    +CONFIG_XEN_BALLOON=y
    +CONFIG_XEN_SCRUB_PAGES=y
    +
    +##
    ## file: fs/partitions/Kconfig
    ##
    CONFIG_ACORN_PARTITION=y




    --
    Ian Campbell

    It may or may not be worthwhile, but it still has to be done.

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.9 (GNU/Linux)

    iEYEABECAAYFAkihPlkACgkQM0+0qS9rzVnW4gCg3ngjeR/aLLJP5kPnHN5k56U2
    jwoAoJ0hmKzdmdg6icajQTp2hoLPvBDL
    =eWaI
    -----END PGP SIGNATURE-----


  2. Re: [PATCH] Enable amd64 Xen on trunk

    On Tue, 12 Aug 2008, Ian Campbell wrote:

    > Since trunk is now at 2.6.27 which supports amd64 Xen guest's I thought
    > we could enable CONFIG_XEN for that kernel. I also added some options to
    > the 32 bit config, they are enabled anyway this just makes them that
    > explicit.
    >
    > any opinions?


    full ack.

    --
    maks


    --
    To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  3. Re: [PATCH] Enable amd64 Xen on trunk

    On Tue, Aug 12, 2008 at 08:40:09AM +0100, Ian Campbell wrote:
    > Since trunk is now at 2.6.27 which supports amd64 Xen guest's I thought
    > we could enable CONFIG_XEN for that kernel. I also added some options to
    > the 32 bit config, they are enabled anyway this just makes them that
    > explicit.
    >
    > any opinions?
    >
    > diff --git a/linux-2.6/debian/config/amd64/config b/linux-2.6/debian/config/amd64/config
    > index 81ece14..a7258aa 100644
    > --- a/linux-2.6/debian/config/amd64/config
    > +++ b/linux-2.6/debian/config/amd64/config
    > @@ -93,6 +93,13 @@ CONFIG_KVM_INTEL=m
    > CONFIG_KVM_AMD=m
    >
    > ##
    > +## file: arch/x86/xen/Kconfig
    > +##
    > +CONFIG_XEN=y
    > +CONFIG_XEN_MAX_DOMAIN_MEMORY=32
    > +CONFIG_XEN_SAVE_RESTORE=y


    Okay.

    > CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
    > CONFIG_INPUT_JOYDEV=m
    > CONFIG_INPUT_EVDEV=m
    > +CONFIG_XEN_KBDDEV_FRONTEND=y

    =m?

    > CONFIG_FB_TRIDENT=m
    > # CONFIG_FB_TRIDENT_ACCEL is not set
    > CONFIG_FB_VIRTUAL=m
    > +CONFIG_XEN_FBDEV_FRONTEND=y

    =m?

    Bastian

    --
    .... The prejudices people feel about each other disappear when they get
    to know each other.
    -- Kirk, "Elaan of Troyius", stardate 4372.5


    --
    To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  4. Re: [PATCH] Enable amd64 Xen on trunk

    On Tue, 2008-08-12 at 11:25 +0200, Bastian Blank wrote:
    > On Tue, Aug 12, 2008 at 08:40:09AM +0100, Ian Campbell wrote:
    > > CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
    > > CONFIG_INPUT_JOYDEV=m
    > > CONFIG_INPUT_EVDEV=m
    > > +CONFIG_XEN_KBDDEV_FRONTEND=y

    > =m?
    >
    > > CONFIG_FB_TRIDENT=m
    > > # CONFIG_FB_TRIDENT_ACCEL is not set
    > > CONFIG_FB_VIRTUAL=m
    > > +CONFIG_XEN_FBDEV_FRONTEND=y

    > =m?


    These are currently already =y due to the Kconfigs having "default y" in
    them.

    They could be made modular but I'm not sure how this would impact d-i
    where I'm am considering enabling graphical install mode for Xen
    http://lists.debian.org/debian-boot/.../msg00274.html

    Since this is trunk we could switch to =m now and figure out d-i later
    for Lenny+1 (or +0.5). On the other hand VFB is somewhat to Xen like
    CONFIG_FB_VESA is to native so an argument could be made for keeping it
    builtin. I'll do a build and try and see what the size impact is.

    If we do go for =m I'd do it in a separate changeset to this one.

    Ian.

    --
    Ian Campbell
    Current Noise: Firebird - I Wish You Well

    broad-mindedness, n:
    The result of flattening high-mindedness out.


    --
    To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

  5. Re: [PATCH] Enable amd64 Xen on trunk

    On Tue, 2008-08-12 at 10:46 +0100, Ian Campbell wrote:
    >
    > They could be made modular but I'm not sure how this would impact d-i
    > where I'm am considering enabling graphical install mode for Xen
    > http://lists.debian.org/debian-boot/.../msg00274.html
    >
    > Since this is trunk we could switch to =m now and figure out d-i later
    > for Lenny+1 (or +0.5). On the other hand VFB is somewhat to Xen like
    > CONFIG_FB_VESA is to native so an argument could be made for keeping
    > it builtin. I'll do a build and try and see what the size impact is.


    I make it around 10k on the vmlinux (3489678-3479036=10642) or 6k on the
    bzImage (1542-1536). Changing CONFIG_XEN_FBDEV_FRONTEND and
    CONFIG_XEN_KBDDEV_FRONTEND to =m also caused these symbols to follow:
    CONFIG_FB_SYS_FILLRECT
    CONFIG_FB_SYS_COPYAREA
    CONFIG_FB_SYS_IMAGEBLIT
    CONFIG_FB_SYS_FOPS

    $ cat sizes-y
    text data bss dec hex filename
    2145 168 0 2313 909 drivers/input/xen-kbdfront.o
    28634 1412 252 30298 765a drivers/input/built-in.o
    3571 328 0 3899 f3b drivers/video/xen-fbfront.o
    99766 3240 7880 110886 1b126 drivers/video/built-in.o
    2754338 276588 458752 3489678 353f8e vmlinux
    -rwxr-xr-x 1 ijc ijc 4.2M Aug 12 10:50 vmlinux*
    -rw-r--r-- 1 ijc ijc 1.6M Aug 12 11:09 arch/x86/boot/bzImage
    -rw-r--r-- 1 ijc ijc 1542 Aug 12 12:01 arch/x86/boot/bzImage

    $ cat sizes-m
    text data bss dec hex filename
    4362 1504 0 5866 16ea drivers/input/xen-kbdfront.ko
    2079 1344 0 3423 d5f drivers/input/xen-kbdfront.mod.o
    2240 160 0 2400 960 drivers/input/xen-kbdfront.o
    26487 1220 252 27959 6d37 drivers/input/built-in.o
    7442 1664 0 9106 2392 drivers/video/xen-fbfront.ko
    3615 1344 0 4959 135f drivers/video/xen-fbfront.mod.o
    3769 320 0 4089 ff9 drivers/video/xen-fbfront.o
    90642 2912 7880 101434 18c3a drivers/video/built-in.o
    2744216 276068 458752 3479036 3515fc vmlinux
    -rwxr-xr-x 1 ijc ijc 4.2M Aug 12 11:10 vmlinux*
    -rw-r--r-- 1 ijc ijc 1.5M Aug 12 11:10 arch/x86/boot/bzImage
    -rw-r--r-- 1 ijc ijc 1536 Aug 12 12:00 arch/x86/boot/bzImage


    --
    Ian Campbell
    Current Noise: Godflesh - Dead Head

    .... [concerning quotation marks] even if we *___did* quote anybody in this
    business, it probably would be gibberish.
    -- Thom McLeod


    --
    To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

+ Reply to Thread