All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yang, Sheng" <sheng.yang@intel.com>
To: kvm@vger.kernel.org
Subject: [PATCH] kvm: add a script to report hardware feature
Date: Thu, 19 Jun 2008 18:44:37 +0800	[thread overview]
Message-ID: <200806191844.37283.sheng.yang@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 880 bytes --]

From 5409ef94b0b0b9fd109389fdccd4827e04f9590f Mon Sep 17 00:00:00 2001
From: Sheng Yang <sheng.yang@intel.com>
Date: Thu, 19 Jun 2008 18:38:20 +0800
Subject: [PATCH] kvm: add a script to report hardware feature


Signed-off-by: Sheng Yang <sheng.yang@intel.com>
---
 scripts/kvm_report_features |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100755 scripts/kvm_report_features

diff --git a/scripts/kvm_report_features b/scripts/kvm_report_features
new file mode 100755
index 0000000..66e746d
--- /dev/null
+++ b/scripts/kvm_report_features
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+report=/sys/devices/system/kvm/kvm0/kvm_hw_feature_report
+
+if [ -a $report ];
+then
+	cat $report
+else
+	echo Feature report interface didn\'t exist.
+	echo Maybe don\'t support in this version or modules are not loaded.
+fi
--
1.5.5


[-- Attachment #2: 0001-kvm-add-a-script-to-report-hardware-feature.patch --]
[-- Type: text/x-diff, Size: 881 bytes --]

From 5409ef94b0b0b9fd109389fdccd4827e04f9590f Mon Sep 17 00:00:00 2001
From: Sheng Yang <sheng.yang@intel.com>
Date: Thu, 19 Jun 2008 18:38:20 +0800
Subject: [PATCH] kvm: add a script to report hardware feature


Signed-off-by: Sheng Yang <sheng.yang@intel.com>
---
 scripts/kvm_report_features |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100755 scripts/kvm_report_features

diff --git a/scripts/kvm_report_features b/scripts/kvm_report_features
new file mode 100755
index 0000000..66e746d
--- /dev/null
+++ b/scripts/kvm_report_features
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+report=/sys/devices/system/kvm/kvm0/kvm_hw_feature_report
+
+if [ -a $report ];
+then
+	cat $report
+else
+	echo Feature report interface didn\'t exist.
+	echo Maybe don\'t support in this version or modules are not loaded.
+fi
-- 
1.5.5


             reply	other threads:[~2008-06-19 10:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-19 10:44 Yang, Sheng [this message]
2008-06-19 10:48 ` [PATCH] kvm: add a script to report hardware feature Yang, Sheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200806191844.37283.sheng.yang@intel.com \
    --to=sheng.yang@intel.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.