From mboxrd@z Thu Jan 1 00:00:00 1970 From: INAKOSHI Hiroya Subject: [Patch] Relax the sanity check on guest configuration with XSM-ACM addlabel Date: Fri, 28 Nov 2008 09:58:53 +0900 Message-ID: <492F424D.70302@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020900070002080201060704" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------020900070002080201060704 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit The attached patch relaxes the sanity check on guest configuration when you assign a acm label to the guest. This patch makes a guest configuration accept a bootloader parameter. This is common for paravirtualized guests to boot them by using pygrub. The relaxed way of sanity cheking is not exact in terms of ignoring the case where kernel and bootloader parameter coincide. That is apparantly incorrect, but an exact way requires double loops and it was a bit boring to me. Signed-off-by: INAKOSHI Hiroya --------------020900070002080201060704 Content-Type: text/plain; name="addlabel.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="addlabel.patch" ZGlmZiAtciA1ZmQ1MWUxZTljNzkgdG9vbHMvcHl0aG9uL3hlbi94bS9hZGRsYWJlbC5weQot LS0gYS90b29scy9weXRob24veGVuL3htL2FkZGxhYmVsLnB5CVdlZCBOb3YgMDUgMTA6NTc6 MjEgMjAwOCArMDAwMAorKysgYi90b29scy9weXRob24veGVuL3htL2FkZGxhYmVsLnB5CVR1 ZSBOb3YgMTEgMTY6MjQ6MzQgMjAwOCArMDkwMApAQCAtNjQsMTIgKzY0LDEzIEBAIGRlZiB2 YWxpZGF0ZV9jb25maWdfZmlsZShjb25maWdmaWxlKToKICAgICAgICAgcmV0dXJuIDAKIAog ICAgICMgc2FuaXR5IGNoZWNrIG9uIHRoZSBkYXRhIGZyb20gdGhlIGZpbGUKKyAgICAjIHJl cXVpcmluZyAnbWVtb3J5LCcgJ25hbWUsJyBhbmQgZXRoZXIgJ2tlcm5lbCcgb3IgJ2Jvb3Rs b2FkZXInCiAgICAgY291bnQgPSAwCi0gICAgcmVxdWlyZWQgPSBbJ2tlcm5lbCcsICdtZW1v cnknLCAnbmFtZSddCisgICAgcmVxdWlyZWQgPSBbJ2tlcm5lbCcsICdib290bG9hZGVyJywg J21lbW9yeScsICduYW1lJ10KICAgICBmb3IgKGssIHYpIGluIGxvY3MuaXRlbXMoKToKICAg ICAgICAgaWYgayBpbiByZXF1aXJlZDoKICAgICAgICAgICAgIGNvdW50ICs9IDEKLSAgICBp ZiBjb3VudCAhPSAzOgorICAgIGlmIGNvdW50IDwgbGVuKHJlcXVpcmVkKSAtIDE6CiAgICAg ICAgIHByaW50ICJJbnZhbGlkIGNvbmZpZ3VyYXRpb24gZmlsZS4iCiAgICAgICAgIHJldHVy biAwCiAgICAgZWxzZToK --------------020900070002080201060704 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------020900070002080201060704--