Skip to contentSkip to conversation

shadow page code

DISCUSSION Ky Srinivasan 4 participants 5 messages Jan 25, 2007 – Jan 27, 2007

lore
Share & tools
lore
#0 lore raw

APIs such as sh_invlpg and sh_update_cr3 take a pointer to the virtual cpu on which it needs to operate as an argument. However, it appears that the call can only operate on the currently executing vcpu.

Regards,

K. Y

#1 lore raw
Quoted 1 line · Ky Srinivasan

APIs such as sh_invlpg and sh_update_cr3 take a pointer to the virtual cpu on which it needs to operate as an argument. However, it appears that the call can only operate on the currently executing vcpu.

sh_update_cr3 can be run against another vcpu, e.g. in domain creation, and in the HVM save/restore code.

sh_invlpg does indeed only ever run on 'current'.

Tim.

#2 lore raw

backend and frontend

In reply to Ky Srinivasan

hi
I try to understand the blkback and blkfront codes,and I am puzzled about the initialization for both blkback and frontend.
Does the blkback complete the initialization when the dom0 init ?and when does the frontend in guestOS try to connet with the blkback in the dom0? and how does the frontend do? how does the frontend register the relative entryes in the xenstore in the dom0? I am really puzzled ,could anyone help me?
Thanks in advance

#3 lore raw

Re: backend and frontend

Quoted 8 lines · tgh

hi
I try to understand the blkback and blkfront codes,and I am puzzled about the initialization for both blkback and frontend.
Does the blkback complete the initialization when the dom0 init ?and when does the frontend in guestOS try to connet with the blkback in the dom0? and how does the frontend do? how does the frontend register the relative entryes in the xenstore in the dom0?
I am really puzzled ,could anyone help me?

http://wiki.xensource.com/xenwiki/XenSplitDrivers
http://wiki.xensource.com/xenwiki/XenStoreReference

HTH,

Ewan.

#4 lore raw

Re: backend and frontend

hi
Thank you for reply
I read the wiki about the XenSplitDrivers and XenStoreReference ,
and I made a img file and create a vm with the img ,and the conf file is like the follows

kernel = "/boot/vmlinuz-2.6.16-xenU"
memory = 256
name = "dom1"
vcpus = 1
vif = [ '' ]
disk = [ 'file:/vm/dom1.img,sda1,w' ]
netmask = "255.255.0.0"
gateway = "192.168.150.1"
hostname = "office1"
ip = "192.168.104.4"
root = "/dev/sda1 ro"

there will be a disk in the backend/vbd/domid/virtual-device in the xenstore,isn`t it? Does xen support the vm to hotplug another virtual disk ,which is accessed by dom0?

If it does,what and how does xen deal with the backend and the xenstore?
Are there two elements in the backend/vbd/domid/ in the xenstore?
and what about the frontend in the vm ,are there two frontend in the vm or just one? how to identify them then?

If it does not ,what should we do to make it work? Does it need another frontend in the vm or not ? and how about the backend ?

could you give me some guide ?
Thanks in advance

Quoted 23 lines · Ewan Mellor
Quoted 5 lines · tgh

hi
I try to understand the blkback and blkfront codes,and I am puzzled about the initialization for both blkback and frontend.
Does the blkback complete the initialization when the dom0 init ?and when does the frontend in guestOS try to connet with the blkback in the dom0? and how does the frontend do? how does the frontend register the relative entryes in the xenstore in the dom0? I am really puzzled ,could anyone help me?

http://wiki.xensource.com/xenwiki/XenSplitDrivers
http://wiki.xensource.com/xenwiki/XenStoreReference

HTH,

Ewan.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel