All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasiliy G Tolstov <v.tolstov@selfip.ru>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: xenstore watch not working under 32 bit domU (xen stable 2.6.32 from jeremy git tree)
Date: Thu, 30 Dec 2010 18:15:52 +0300	[thread overview]
Message-ID: <1293722152.24389.3.camel@vase> (raw)
In-Reply-To: <1291574386.20932.8.camel@mobile>

On Sun, 2010-12-05 at 21:39 +0300, Vasiliy G Tolstov wrote: 
> On Mon, 2010-11-22 at 14:53 +0300, Vasiliy G Tolstov wrote:
> > Hello. Can You helps me, i'm try to investigate why under 64 bit domU
> > this kernel module work's correct, but under 686 watch does not work:
> 

Sorry for long delay. I'm test some situations and investigate, that in
pvops 2.6.32.26 in 64 bit or 32 bit xenstore notifier and xenbus watch
not triggered.

Under centos 32 bit domU (xenlinux kernel)
module displays via printk (insmod xenmgm.ko; rmmod xenmgm;):

xenwatch: module init
xenwatch: xenstore watcher init
xenwatch: test
xenwatch: module exit

Under centos 32 bit domU (2.6.32.26 from jeremy)
module displays via printk (insmod xenmgm.ko; rmmod xenmgm;):

xenwatch: module init
xenwatch: module exit

Kernel config in attached file

Module source in e-mail:

#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/fcntl.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/notifier.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/io.h>

#include <asm/xen/hypervisor.h>
#include <xen/xenbus.h>
#include <xen/events.h>
#include <xen/xen.h>
#include <xen/platform_pci.h>

static void xenwatch_watch(struct xenbus_watch *watch, const char **vec,
unsigned int len)
{
	printk("xenwatch: test");
}


static struct xenbus_watch xenwatch_xenbus_watch = {
        .node = "data",
        .callback = xenwatch_watch,
};

static int xenwatch_init_watcher(struct notifier_block *notifier,
unsigned long event, void *data)
{
        register_xenbus_watch(&xenwatch_xenbus_watch);
	printk("xenwatch: xenstore watcher init\n");
	return NOTIFY_DONE;
}

static struct notifier_block xenwatch_xenstore_notifier = {
        .notifier_call = xenwatch_init_watcher,
};


static int __init xenwatch_init(void)
{
	printk("\n");
	printk("xenwatch: module init\n");
	register_xenstore_notifier(&xenwatch_xenstore_notifier);
        return 0;
}

static void __exit xenwatch_exit(void)
{
	unregister_xenstore_notifier(&xenwatch_xenstore_notifier);
	printk("xenwatch: module exit\n");
	printk("\n");
        return;
}

subsys_initcall(xenwatch_init);
module_exit(xenwatch_exit);

MODULE_LICENSE("GPL");



-- 
Vasiliy G Tolstov <v.tolstov@selfip.ru>
Selfip.Ru

  reply	other threads:[~2010-12-30 15:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-22 11:53 xenstore watch not working under 32 bit domU (xen stable 2.6.32 from jeremy git tree) Vasiliy G Tolstov
2010-12-05 18:39 ` Vasiliy G Tolstov
2010-12-30 15:15   ` Vasiliy G Tolstov [this message]
2010-12-06 18:22 ` Jeremy Fitzhardinge

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=1293722152.24389.3.camel@vase \
    --to=v.tolstov@selfip.ru \
    --cc=xen-devel@lists.xensource.com \
    /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.