Skip to content

Applying Xen Patches

cjp256 edited this page Nov 19, 2014 · 9 revisions

Xen patches are applied using the xen-common-pq repository

Patch files are stored in the "master" directory. Additionally, the filename for patches to be applied are added to the file "master/series" in an appropriate location.

Validating the Patch

In the absence of a test program, you can validate the patch application from the source in a build tree. (Replace version with appropriate value)

  1. Clean the state for xen: MACHINE=xenclient-dom0 ./bb -c clean xen-<version>
  2. Run the patch queue: MACHINE=xenclient-dom0 ./bb -v -c apply_patchqueue xen-<version>
  3. Validate the patch: You can either trust that the patch applied from the output above, or validate the source at tmp-eglibc/work/core2-oe-linux/xen-4.3.3+git<blah>/xen-<version> in the OE build directory (where <blah> corresponds with the commit hash of the pq repo you are building against. it should be visible in the above build step logs).

Verifying the Patch

The above does not verify that the patch works as intended and does not break anything. Please test accordingly!