How to re-compile 13.2 Xen Kernel?

I wish to recompile the OpenSUSE 13.2 supplied Xen kernel (3.16.6-2.1).
The reason is I wish to remove a driver (xhci.ko) from the kernel.

I’ve seen a lot of guides online for compiling your own Linux kernel from the latest source.
I wish to use the OpenSUSE 13.2-supplied source code however, and enable Xen.
I saw that Xen has special patches for OpenSUSE so that’s why I wish to use the 13.2 source.
Additionally, there is a requirement that I use the 13.2 shipped code to maintain compatibility.

Can anyone point me to a walk through to do this?
I’m relatively new to OpenSUSE

Thank you for your time :slight_smile:

It is module, it is not part of kernel. If you do not want it to be loaded automatically, blacklist it.

Technically speaking, you don’t actually blacklist a KLM(LKM), you unload it.

This page should describe what you’d want to do.
http://www.tldp.org/HOWTO/html_single/Module-HOWTO/

Alternatively, for some modules you can use a sysctl command like how I describe changing the TCP/IP Congestion Control Algorithm
https://sites.google.com/site/4techsecrets/optimize-and-fix-your-network-connection/linux

The above link should lead to pages that describe today’s modular kernel architecture…
Every distro creates a base image, and then a second image or manifest of precompiled KLMs which are added on boot.

You might also describe what you’re trying to do. Ordinarily I think xhci.ko provides USB 3.0 support. I would think that it shouldn’t be difficult to disable USB features in a Guest without having to actually remove kernel support.
Unless your objective is reducing attack surface…

TSU