lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 26 Jul 2013 14:51:12 +0800
From:	Rui Wang <ruiv.wang@...il.com>
To:	bhelgaas@...gle.com
Cc:	tony.luck@...el.com, chaohong.guo@...el.com,
	gong.chen@...ux.intel.com, rafael.j.wysocki@...el.com,
	linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
	Rui Wang <rui.y.wang@...el.com>
Subject: [RFC 0/3] IO Hook: Method for emulating h/w events

Hi Bjorn,

This was originally the method I used to test hotplug on Intel SDV machines
which are not capable of doing hotplug. I would like to present it here in
case it interests the community, then it can be made available to a wider
range of developers who are working on hotplug.

I used it to generate desired ACPI events, PCI interrupts, and more. So
things like CPU hotplug, IOH hotplug, memory hotplug, PCI native hotplug,
PCI AER injection can be emulated and tested easily.

The best thing is that, it doesn't require any modification to those drivers
involved. It works with whatever hardware events that the user can imagine.
Further development in user-space using scripts may help simplify the usage
model and add more software-defined logic on hardware.

Because it modifies the heart of all h/w access functions, I used Jump Label
to reduce the performance penalty to effectively zero.

I tested the performance by repeatedly running lspci, which calls into the
pci access functions. There's no added overhead observed.

Regards,
Rui Wang
Intel Open Source Technology Center

Rui Wang (3):
  IO Hook: core functions and Register Override
  IO Hook: kernel interface to manage the hook
  IO Hook: sysfs interface to emulate h/w events

 Documentation/PCI/iohook.txt      |  290 +++++++++++++++++
 arch/x86/Kconfig                  |    7 +
 arch/x86/boot/compressed/Makefile |    1 +
 arch/x86/include/asm/io.h         |   58 ++++-
 arch/x86/vdso/Makefile            |    2 +
 drivers/misc/Kconfig              |    1 +
 drivers/misc/Makefile             |    1 +
 drivers/misc/iohook/Kconfig       |    5 +
 drivers/misc/iohook/Makefile      |    1 +
 drivers/misc/iohook/iohook.c      |  503 +++++++++++++++++++++++++++++
 drivers/pci/access.c              |  630 +++++++++++++++++++++++++++++++++++++
 include/linux/reg_ovrd.h          |   55 ++++
 12 files changed, 1552 insertions(+), 2 deletions(-)
 create mode 100644 Documentation/PCI/iohook.txt
 create mode 100644 drivers/misc/iohook/Kconfig
 create mode 100644 drivers/misc/iohook/Makefile
 create mode 100644 drivers/misc/iohook/iohook.c
 create mode 100644 include/linux/reg_ovrd.h

-- 
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ