[Xen-devel] [PATCH v13 4/8] vmware: Add VMware provided include file.

2015-11-28 Thread Don Slutz
From: Don Slutz This file: backdoor_def.h comes from: http://packages.vmware.com/tools/esx/3.5latest/rhel4/SRPMS/index.html open-vm-tools-kmod-7.4.8-396269.423167.src.rpm open-vm-tools-kmod-7.4.8.tar.gz vmhgfs/backdoor_def.h and is unchanged. Added the badly named include file

[Xen-devel] [PATCH v13 0/8] Xen VMware tools support

2015-11-28 Thread Don Slutz
riginal ones should be added via a patch, and then adjusted in a 2nd patch. Can you use XenBus? I would say no. XenBus (and XenStore) is about domain to domain communication. This is about VMware's hyper-call and providing access to VMware's guest info very low speed a

[Xen-devel] [PATCH v13 3/8] tools: Add vmware_hwver support

2015-11-28 Thread Don Slutz
From: Don Slutz This is used to set xen_arch_domainconfig vmware_hw. It is set to the emulated VMware virtual hardware version. Currently 0, 3-4, 6-11 are good values. However the code only checks for == 0, != 0, or < 7. Signed-off-by: Don Slutz CC: Don Slutz Acked-by: Ian Campb

[Xen-devel] [PATCH v13 5/8] xen: Add vmware_port support

2015-11-28 Thread Don Slutz
From: Don Slutz This includes adding is_vmware_port_enabled This is a new xen_arch_domainconfig flag, XEN_DOMCTL_CONFIG_VMWARE_PORT_MASK. This enables limited support of VMware's hyper-call. This is both a more complete support then in currently provided by QEMU and/or KVM and less.

[Xen-devel] [PATCH v13 6/8] tools: Add vmware_port support

2015-11-28 Thread Don Slutz
From: Don Slutz This new libxl_domain_create_info field is used to set XEN_DOMCTL_CONFIG_VMWARE_PORT_MASK in the xc_domain_configuration_t for x86. In xen it is is_vmware_port_enabled. If is_vmware_port_enabled then enable a limited support of VMware's hyper-call. VMware's hyp

[Xen-devel] [PATCH v13 8/8] Add xentrace to vmware_port

2015-11-28 Thread Don Slutz
From: Don Slutz Also added missing TRAP_DEBUG & VLAPIC. Signed-off-by: Don Slutz Acked-by: Ian Campbell CC: Don Slutz --- v13: Please do this by extending the existing infrastructure rather than special-casing 7 on the side. (i.e. extend ND to take 7 parameters, and intro

[Xen-devel] [PATCH v13 2/8] xen: Add support for VMware cpuid leaves

2015-11-28 Thread Don Slutz
From: Don Slutz This is done by adding xen_arch_domainconfig vmware_hw. It is set to the VMware virtual hardware version. Currently 0, 3-4, 6-11 are good values. However the code only checks for == 0 or != 0 or >= 7. If non-zero then Return VMware's cpuid leaves. If >= 7 return

[Xen-devel] [PATCH v13 7/8] Add IOREQ_TYPE_VMWARE_PORT

2015-11-28 Thread Don Slutz
From: Don Slutz This adds synchronization of the 6 vcpu registers (only 32bits of them) that vmport.c needs between Xen and QEMU. This is to avoid a 2nd and 3rd exchange between QEMU and Xen to fetch and put these 6 vcpu registers used by the code in vmport.c and vmmouse.c In the tools, enable

[Xen-devel] [PATCH v13 1/8] tools: Add vga=vmware

2015-11-28 Thread Don Slutz
From: Don Slutz This allows use of QEMU's VMware emulated video card NOTE: vga=vmware is not supported by device_model_version=qemu-xen-traditional Signed-off-by: Don Slutz CC: Don Slutz Acked-by: Ian Campbell --- v13: Added Acked-by: Ian Campbell v12: Dr

Re: [Xen-devel] [PATCH v11 6/9] xen: Add ring 3 vmware_port support

2015-06-04 Thread Don Slutz
On 06/03/15 12:23, George Dunlap wrote: > On 06/03/2015 04:58 PM, Andrew Cooper wrote: >> On 03/06/15 16:26, George Dunlap wrote: >>> On 05/22/2015 04:50 PM, Don Slutz wrote: >>>> Summary is that VMware treats "in (%dx),%eax" (or "out %eax,(%dx)"

Re: [Xen-devel] [PATCH v11 8/9] Add IOREQ_TYPE_VMWARE_PORT

2015-06-04 Thread Don Slutz
On 06/03/15 13:09, George Dunlap wrote: > On 05/22/2015 04:50 PM, Don Slutz wrote: >> This adds synchronization of the 6 vcpu registers (only 32bits of >> them) that vmport.c needs between Xen and QEMU. >> >> This is to avoid a 2nd and 3rd exchange between QEMU and Xen

Re: [Xen-devel] [PATCH v11 9/9] Add xentrace to vmware_port

2015-06-04 Thread Don Slutz
On 06/04/15 07:20, George Dunlap wrote: > On 05/22/2015 04:50 PM, Don Slutz wrote: >> Also added missing TRAP_DEBUG & VLAPIC. >> >> Signed-off-by: Don Slutz >> Acked-by: Ian Campbell >> --- >> v11: >> No change >> >> v10: >>

Re: [Xen-devel] [PATCH v11 6/9] xen: Add ring 3 vmware_port support

2015-06-04 Thread Don Slutz
On 06/03/15 12:58, George Dunlap wrote: > On 06/03/2015 05:41 PM, Don Slutz wrote: >> On 06/03/15 12:23, George Dunlap wrote: >>> On 06/03/2015 04:58 PM, Andrew Cooper wrote: >>>> On 03/06/15 16:26, George Dunlap wrote: >>>>> On 05/22/2015 04:50 PM, D

Re: [Xen-devel] [PATCH v11 3/9] tools: Add vmware_hwver support

2015-06-04 Thread Don Slutz
On 06/04/15 11:15, Ian Campbell wrote: > On Wed, 2015-06-03 at 15:53 +0100, George Dunlap wrote: >> On 05/22/2015 04:50 PM, Don Slutz wrote: >>> This is used to set xen_arch_domainconfig vmware_hw. It is set to >>> the emulated VMware virtual hardware version. >>

Re: [Xen-devel] [PATCH v11 3/9] tools: Add vmware_hwver support

2015-06-04 Thread Don Slutz
On 06/04/15 11:17, Ian Campbell wrote: > On Fri, 2015-05-22 at 11:50 -0400, Don Slutz wrote: >> [...] >> +=item B >> + >> +Turns on or off the exposure of VMware cpuid. The number is >> +VMware's hardware version number, where 0 is off. A number >= 7 &

Re: [Xen-devel] [PATCH v11 7/9] tools: Add vmware_port support

2015-06-04 Thread Don Slutz
On 06/04/15 11:49, Ian Campbell wrote: > On Wed, 2015-06-03 at 18:06 +0100, George Dunlap wrote: >> On 05/22/2015 04:50 PM, Don Slutz wrote: >>> This new libxl_domain_create_info field is used to set >>> XEN_DOMCTL_CONFIG_VMWARE_PORT_MASK in the xc_domain_configuratio

Re: [Xen-devel] [PATCH v11 6/9] xen: Add ring 3 vmware_port support

2015-06-04 Thread Don Slutz
On 06/04/15 10:14, George Dunlap wrote: > On 06/04/2015 01:37 PM, Don Slutz wrote: >> On 06/03/15 12:58, George Dunlap wrote: >>> On 06/03/2015 05:41 PM, Don Slutz wrote: >>>> On 06/03/15 12:23, George Dunlap wrote: >>>>> On 06/03/2015 04:58 PM,

Re: [Xen-devel] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-04 Thread Don Slutz
not (for example > save/restore). > > Thanks for any reply and sorry for my bad english. > The patch: >From 1b0221078353870fe530e49de158cae205f9bce5 Mon Sep 17 00:00:00 2001 From: Don Slutz Date: Thu, 4 Jun 2015 17:04:42 -0400 Subject: [PATCH 01/14]

Re: [Xen-devel] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-04 Thread Don Slutz
On 06/04/15 17:59, Don Slutz wrote: > On 06/04/15 11:04, Fabio Fantoni wrote: >> Today after trying xen-unstable build (tested many hours) of some days >> ago I tried update qemu to latest development version (from git master >> commit 6fa6b312765f698dc81b2c30e7eeb9683804a05b)

Re: [Xen-devel] [Qemu-devel] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-04 Thread Don Slutz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/04/15 18:10, Eric Blake wrote: > [adding Markus, as author of the regression] > > On 06/04/2015 03:59 PM, Don Slutz wrote: >> On 06/04/15 11:04, Fabio Fantoni wrote: >>> Today after trying xen-unstable build (tested many

Re: [Xen-devel] [PATCH v11 5/9] xen: Add vmware_port support

2015-06-05 Thread Don Slutz
( d->arch.hvm_domain.is_vmware_port_enabled ) +{ +rc = -EOPNOTSUPP; +break; +} Surrounding code avoiding the use of "break" makes the result look rather inconsistent. Please move this up immediately after the XSM check, or drop the "break". Wil

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-08 Thread Don Slutz
to > domain. Using it to cover QEMU option roms would be one use case. It's > not very nice, but it's straight-forward. > > Wei. > I think also that probably libxl, rather than setting a target amount of > memory the balloon driver is supposed to aim at, should set the target > size of the balloon. Once qemu tells it how many pages are actually > being used for virtual devices, > > We could, in theory, expose all this information in xenstore such that > *either* libxl or qemu would be able to calculate max_pages based on the > numbers that were written there. And that would work if we could > enforce a lock-step between the toolstack and qemu, as we can between > Xen and the toolstack. But I think setting anything like this in stone > is a really bad idea; which unfortulately excludes the idea of putting > it in qemu. > -Don Slutz > -George > ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-08 Thread Don Slutz
On 06/08/15 11:37, George Dunlap wrote: > On 06/08/2015 04:01 PM, Don Slutz wrote: >> On 06/08/15 10:20, George Dunlap wrote: >>> And at the moment, pages in the p2m are allocated by a number of entities: >>> * In the libxc domain builder. >>> * In the guest b

[Xen-devel] [BUGFIX][PATCH v2 1/4] exec: Do not use MemoryRegion after free

2015-06-08 Thread Don Slutz
2 962 if (mr->subpage) { (gdb) p mr $10 = (MemoryRegion *) 0x7fdf32a168b0 (gdb) p *mr Cannot access memory at address 0x7fdf32a168b0 Signed-off-by: Don Slutz CC: Don Slutz --- exec.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c inde

[Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-08 Thread Don Slutz
idev id: 1 bdf: 00:04.0 xen_map_pcidev id: 1 bdf: 03:04.0 Signed-off-by: Don Slutz CC: Don Slutz --- include/hw/xen/xen_common.h | 53 +++-- trace-events| 6 +++-- xen-hvm.c | 15 - 3 files changed, 55 inserti

[Xen-devel] [PATCH v2 3/4] xen: Add usage of device listener interface for PCI to PCI bridges

2015-06-08 Thread Don Slutz
Signed-off-by: Don Slutz CC: Don Slutz --- include/hw/xen/xen_common.h | 10 ++ xen-hvm.c | 13 - 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h index 38f29fb..6579b78 100644 --- a

[Xen-devel] [PATCH v2 2/4] Extend device listener interface for PCI to PCI bridges

2015-06-08 Thread Don Slutz
listener interface to be called when ever the secondary bus number is set to a new value. This new interface is called for all PCI devices that are on the secondary bridge. Signed-off-by: Don Slutz CC: Don Slutz --- hw/core/qdev.c | 7 +++ hw/pci/pci_bridge.c| 18

[Xen-devel] [PATCH v2 0/4] Fix device listener interface for PCI to PCI bridges

2015-06-08 Thread Don Slutz
55, and 0 is not very special either (except it happens to be the reset value)." Dropped all checking of 0 and 255. Open question by Michael S. Tsirkin: >>>> On Thu, May 28, 2015 at 07:25:50AM -0400, Don Slutz wrote: ... >>>> It is not clear to me that the c

Re: [Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-09 Thread Don Slutz
On 06/09/15 05:05, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 08 June 2015 22:19 >> To: qemu-de...@nongnu.org; xen-devel@lists.xen.org >> Cc: Michael S. Tsirkin; Paul Durrant; Stefano Stabellini; Don S

Re: [Xen-devel] [PATCH v2 2/4] Extend device listener interface for PCI to PCI bridges

2015-06-09 Thread Don Slutz
On 06/09/15 05:08, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 08 June 2015 22:19 >> To: qemu-de...@nongnu.org; xen-devel@lists.xen.org >> Cc: Michael S. Tsirkin; Paul Durrant; Stefano Stabellini; Don S

Re: [Xen-devel] [PATCH v2 2/4] Extend device listener interface for PCI to PCI bridges

2015-06-09 Thread Don Slutz
On 06/09/15 09:55, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 09 June 2015 14:53 >> To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- >> de...@lists.xen.org >> Cc: Michael

Re: [Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-09 Thread Don Slutz
On 06/09/15 10:03, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 09 June 2015 14:51 >> To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- >> de...@lists.xen.org >> Cc: Michael

Re: [Xen-devel] [PATCH v2 0/4] Fix device listener interface for PCI to PCI bridges

2015-06-09 Thread Don Slutz
On 06/09/15 10:27, Michael S. Tsirkin wrote: > On Tue, Jun 09, 2015 at 02:14:29PM +, Paul Durrant wrote: >>> -Original Message- >>> From: Michael S. Tsirkin [mailto:m...@redhat.com] >>> Sent: 09 June 2015 13:30 >>> To: Paul Durrant >>>

Re: [Xen-devel] [PATCH v2 4/4] xen: Fix map/unmap of pcidev to ioreq server

2015-06-09 Thread Don Slutz
On 06/09/15 11:11, Paul Durrant wrote: >> -Original Message- >> From: Don Slutz [mailto:dsl...@verizon.com] >> Sent: 09 June 2015 15:28 >> To: Paul Durrant; Slutz, Donald Christopher; qemu-de...@nongnu.org; xen- >> de...@lists.xen.org >> Cc: Michael

Re: [Xen-devel] [xen-unstable test] 57852: regressions - FAIL

2015-06-10 Thread Don Slutz
e.dat 2a) cp intel-ucode/06-2a-07 /boot/microcode.bin or 2b) cat intel-ucode/* >/boot/microcode.bin 3) Make sure "ucode=-1" is in GRUB_CMDLINE_XEN 4) /sbin/grub2-mkconfig -o /boot/grub2/grub.cfg And you see microcode loaded on the serial console. -Don Slutz > Jan > >

Re: [Xen-devel] [PATCH v11 8/9] Add IOREQ_TYPE_VMWARE_PORT

2015-06-11 Thread Don Slutz
On 06/08/15 06:05, George Dunlap wrote: > On 06/04/2015 12:28 PM, Don Slutz wrote: >> On 06/03/15 13:09, George Dunlap wrote: >>> On 05/22/2015 04:50 PM, Don Slutz wrote: >>>> This adds synchronization of the 6 vcpu registers (only 32bits of >>>> them

Re: [Xen-devel] [PATCH v11 6/9] xen: Add ring 3 vmware_port support

2015-06-11 Thread Don Slutz
provided or user configured scripts in guests during various power operations. 5) Clock synchronization between guests and hosts or client desktops. 6) Access to VMware guest info variables (code to access QEMU's from Xen to do this is missing). This can be used to customize guest operating s

Re: [Xen-devel] [PATCH v11 6/9] xen: Add ring 3 vmware_port support

2015-06-12 Thread Don Slutz
are guest info variables (code to access QEMU's from Xen to do this is missing). This can be used to customize guest operating systems immediately after powering on virtual machines. It can also be used to monitor the health of a guest. The rea

[Xen-devel] [PATCH 1/4] hvmloader: Fixup pci_write* macros

2015-06-15 Thread Don Slutz
Signed-off-by: Don Slutz CC: Don Slutz --- tools/firmware/hvmloader/util.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/firmware/hvmloader/util.h b/tools/firmware/hvmloader/util.h index a70e4aa..8431f2d 100644 --- a/tools/firmware/hvmloader/util.h +++ b/tools

[Xen-devel] [PATCH 0/4] Add PCI to PCI bridge support to Xen

2015-06-15 Thread Don Slutz
bridges. I.E. make imported Windows disk images more usable under Xen. Don Slutz (4): hvmloader: Fixup pci_write* macros hvmloader: Add support for PCI to PCI bridge Allow vif= to specify PCI address for each nic Allow disk= to specify their emulated bus address docs/misc/xl-disk

[Xen-devel] [PATCH 4/4] Allow disk= to specify their emulated bus address

2015-06-15 Thread Don Slutz
;pvscsi,id=sas1,bus=pciBridge7.0,addr=0x1.0x0", ] disk = [ "vdev=xvdb,bus=sas1.0,target=/dev/etherd/e500.2", ] which allows usage of xen-blkback. Signed-off-by: Don Slutz CC: Don Slutz --- docs/misc/xl-disk-configuration.txt | 25 ++ tools/libxl/libxl_dm.c

[Xen-devel] [PATCH 3/4] Allow vif= to specify PCI address for each nic

2015-06-15 Thread Don Slutz
ot; device_model_args_hvm = [ "-device", "pci-bridge,chassis_nr=2,msi=on,id=pciBridge5.0,multifunction=on,addr=0x15.0", ] vif = [ "model=vmxnet3,bridge=xenbr0,mac=00:0c:29:86:44:a0,bus=pciBridge5.0,addr=0x4.0x0", ] which enables usage o

[Xen-devel] [PATCH 2/4] hvmloader: Add support for PCI to PCI bridge

2015-06-15 Thread Don Slutz
Most of this code is ported from SeaBIOS. This allows many more PCI devices to be added. It can also allow Windows to find it boot disks. Signed-off-by: Don Slutz CC: Don Slutz --- tools/firmware/hvmloader/pci.c | 805 +++- tools/firmware/hvmloader

Re: [Xen-devel] [PATCH 1/4] hvmloader: Fixup pci_write* macros

2015-06-15 Thread Don Slutz
On 06/15/15 10:19, Andrew Cooper wrote: > On 15/06/15 15:15, Don Slutz wrote: >> Signed-off-by: Don Slutz >> CC: Don Slutz > > Fix how? It looks like you are bracketing val. > If val is an expression, the macro most likely does the wrong thing. For example: pci_w

Re: [Xen-devel] [PATCH 2/4] hvmloader: Add support for PCI to PCI bridge

2015-06-15 Thread Don Slutz
On 06/15/15 10:26, Andrew Cooper wrote: > On 15/06/15 15:15, Don Slutz wrote: >> Most of this code is ported from SeaBIOS. >> >> > > SeaBIOS is LGPLv3, while Hvmloader is GPLv2 > > IANAL, but the FSF indicates that this is not a compatible combination. > Si

Re: [Xen-devel] [PATCH 2/4] hvmloader: Add support for PCI to PCI bridge

2015-06-15 Thread Don Slutz
On 06/15/15 10:58, George Dunlap wrote: > On Mon, Jun 15, 2015 at 3:26 PM, Andrew Cooper > wrote: >> On 15/06/15 15:15, Don Slutz wrote: >>> Most of this code is ported from SeaBIOS. >>> >>> >> >> SeaBIOS is LGPLv3, while Hvmloader is GPLv2 &g

Re: [Xen-devel] [PATCH 3/4] Allow vif= to specify PCI address for each nic

2015-06-15 Thread Don Slutz
On 06/15/15 11:54, Wei Liu wrote: > On Mon, Jun 15, 2015 at 10:15:51AM -0400, Don Slutz wrote: >> This allows more then 32 nics. >> > > How does this patch help? What prevents you from having more than 32 > nics? > Without a way to put the emulated nics onto a PCI to

Re: [Xen-devel] [PATCH 3/4] Allow vif= to specify PCI address for each nic

2015-06-16 Thread Don Slutz
On 06/16/15 06:32, Wei Liu wrote: > On Mon, Jun 15, 2015 at 01:45:26PM -0400, Don Slutz wrote: >> On 06/15/15 11:54, Wei Liu wrote: >>> On Mon, Jun 15, 2015 at 10:15:51AM -0400, Don Slutz wrote: >>>> This allows more then 32 nics. >>>> >>> &

Re: [Xen-devel] [PATCH 3/4] Allow vif= to specify PCI address for each nic

2015-06-16 Thread Don Slutz
On 06/16/15 12:14, Wei Liu wrote: > On Tue, Jun 16, 2015 at 11:23:46AM -0400, Don Slutz wrote: > [...] >>>>>> which enables usage of xen-netback. >>>>>> >>>>> >>>>> In any case, exposing HVM-only options to top-level vi

[Xen-devel] [PATCH 2/2] Add xen-hyp-rw

2015-06-18 Thread Don Slutz
opt_hvm_debug_level @ 0x82d080285610 is 0x0(0) opt_hvm_debug_level @ 0x82d080285610 set to 0x(4294967295) Signed-off-by: Don Slutz CC: Don Slutz --- .gitignore | 1 + tools/debugger/gdbsx/Makefile | 7 +- tools/debugger/gdbsx/xen-hyp-rw.c | 209

[Xen-devel] [PATCH 0/2] Allow chnaging of external varibles in the hypervisor

2015-06-18 Thread Don Slutz
y the Hymbervisor's memeory. Don Slutz (2): gdbsx_guestmemio: Allow it to check domain. Add xen-hyp-rw .gitignore | 1 + tools/debugger/gdbsx/Makefile | 7 +- tools/debugger/gdbsx/xen-hyp-rw.c | 209 tools/debugge

[Xen-devel] [PATCH 1/2] gdbsx_guestmemio: Allow it to check domain.

2015-06-18 Thread Don Slutz
gdbsx_guest_mem_io() does not get d passed, it expects to handle the domain lookup itself. Signed-off-by: Don Slutz CC: Don Slutz --- xen/common/domctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/domctl.c b/xen/common/domctl.c index ce517a7..2a2d203 100644 --- a/xen/common

Re: [Xen-devel] [PATCH 1/2] gdbsx_guestmemio: Allow it to check domain.

2015-06-18 Thread Don Slutz
On 06/18/15 12:59, Andrew Cooper wrote: > On 18/06/15 16:55, Don Slutz wrote: >> gdbsx_guest_mem_io() does not get d passed, it expects to handle >> the domain lookup itself. >> >> Signed-off-by: Don Slutz >> CC: Don Slutz > > As for the change itself, Rev

Re: [Xen-devel] [PATCH 2/2] Add xen-hyp-rw

2015-06-18 Thread Don Slutz
On 06/18/15 13:05, Andrew Cooper wrote: > On 18/06/15 16:55, Don Slutz wrote: >> This allows reading and writing of variables in the hypervisor. >> >> for example (read case -- default 4 bytes): >> >> xen-hyp-rw /boot/System.map-xen* opt_hvm_deb

Re: [Xen-devel] [PATCH v11 6/9] xen: Add ring 3 vmware_port support

2015-06-26 Thread Don Slutz
es.google.com/site/chitchatvmback/backdoor Signed-off-by: Don Slutz As there don't seem to be enough convincing arguments for this to be worthwhile, I'm going to drop this and subsequent patches from my list of things to look at. Would you mind following George's (at least I th

[Xen-devel] Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d

2015-06-27 Thread Don Slutz
ne; if ( rc == X86EMUL_OKAY ) rc = X86EMUL_RETRY; } -Don Slutz ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH v12 3/8] tools: Add vmware_hwver support

2015-06-27 Thread Don Slutz
From: Don Slutz This is used to set xen_arch_domainconfig vmware_hw. It is set to the emulated VMware virtual hardware version. Currently 0, 3-4, 6-11 are good values. However the code only checks for == 0, != 0, or < 7. Signed-off-by: Don Slutz CC: Don Slutz --- v12: I'm not s

[Xen-devel] [PATCH v12 1/8] tools: Add vga=vmware

2015-06-27 Thread Don Slutz
From: Don Slutz This allows use of QEMU's VMware emulated video card NOTE: vga=vmware is not supported by device_model_version=qemu-xen-traditional Signed-off-by: Don Slutz CC: Don Slutz --- v12: Dropped LIBXL_HAVE_LIBXL_VGA_INTERFACE_TYPE_VMWARE This means that the later patch

[Xen-devel] [PATCH v12 7/8] Add IOREQ_TYPE_VMWARE_PORT

2015-06-27 Thread Don Slutz
From: Don Slutz This adds synchronization of the 6 vcpu registers (only 32bits of them) that vmport.c needs between Xen and QEMU. This is to avoid a 2nd and 3rd exchange between QEMU and Xen to fetch and put these 6 vcpu registers used by the code in vmport.c and vmmouse.c In the tools, enable

[Xen-devel] [PATCH v12 8/8] Add xentrace to vmware_port

2015-06-27 Thread Don Slutz
From: Don Slutz Also added missing TRAP_DEBUG & VLAPIC. Signed-off-by: Don Slutz Acked-by: Ian Campbell CC: Don Slutz --- v12: Switch VMPORT_IGNORED to port, regs->_eax. v11: No change v10: Added Acked-by: Ian Campbell Added back in the trace point calls. Why is cmd

[Xen-devel] [PATCH v12 4/8] vmware: Add VMware provided include file.

2015-06-27 Thread Don Slutz
From: Don Slutz This file: backdoor_def.h comes from: http://packages.vmware.com/tools/esx/3.5latest/rhel4/SRPMS/index.html open-vm-tools-kmod-7.4.8-396269.423167.src.rpm open-vm-tools-kmod-7.4.8.tar.gz vmhgfs/backdoor_def.h and is unchanged. Added the badly named include file

[Xen-devel] [PATCH v12 2/8] xen: Add support for VMware cpuid leaves

2015-06-27 Thread Don Slutz
From: Don Slutz This is done by adding xen_arch_domainconfig vmware_hw. It is set to the VMware virtual hardware version. Currently 0, 3-4, 6-11 are good values. However the code only checks for == 0 or != 0 or >= 7. If non-zero then Return VMware's cpuid leaves. If >= 7 return

[Xen-devel] [PATCH v12 6/8] tools: Add vmware_port support

2015-06-27 Thread Don Slutz
ID leaves for VMware (vmware_hwver >= 7). Note: vmware_port and nestedhvm cannot be specified at the same time. Signed-off-by: Don Slutz --- v12: s/come/comes/ In v11 this seems to have morphed into only LIBXL_HAVE_LIBXL_VGA_INTERFACE_TYPE_VMWARE being provided, which is cle

[Xen-devel] [PATCH v12 0/8] Xen VMware tools support

2015-06-27 Thread Don Slutz
s about domain to domain communication. This is about VMware's hyper-call and providing access to VMware's guest info very low speed access. Olaf Hering: Dropped changing of bios-strings. Still needs some documentation about this may be needed to do in a tool stack

[Xen-devel] [PATCH v12 5/8] xen: Add vmware_port support

2015-06-27 Thread Don Slutz
From: Don Slutz This includes adding is_vmware_port_enabled This is a new xen_arch_domainconfig flag, XEN_DOMCTL_CONFIG_VMWARE_PORT_MASK. This enables limited support of VMware's hyper-call. This is both a more complete support then in currently provided by QEMU and/or KVM and less.

Re: [Xen-devel] Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d

2015-06-29 Thread Don Slutz
On 06/29/15 10:03, Paul Durrant wrote: -Original Message- From: Paul Durrant Sent: 29 June 2015 13:54 To: Paul Durrant; Don Slutz; xen-devel@lists.xen.org; Jan Beulich Subject: RE: [Xen-devel] Migration bug added by commit 2df1aa01bef7366798248ac6d03cfb42048b003d -Original Message

Re: [Xen-devel] [PATCH v12 8/8] Add xentrace to vmware_port

2015-06-29 Thread Don Slutz
On 06/29/15 10:54, Andrew Cooper wrote: On 28/06/15 00:27, Don Slutz wrote: From: Don Slutz Also added missing TRAP_DEBUG & VLAPIC. Signed-off-by: Don Slutz Acked-by: Ian Campbell CC: Don Slutz --- v12: Switch VMPORT_IGNORED to port, regs->_eax. v11: No change v10: Adde

Re: [Xen-devel] [PATCH v5 01/16] x86/hvm: make sure emulation is retried if domain is shutting down

2015-06-30 Thread Don Slutz
n is found to be shutting down. Reported-by: Don Slutz Signed-off-by: Paul Durrant Keir Fraser Jan Beulich Andrew Cooper Reviewed-by: Andrew Cooper --- xen/arch/x86/hvm/emulate.c |2 +- xen/arch/x86/hvm/hvm.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -

Re: [Xen-devel] [PATCH v12 7/8] Add IOREQ_TYPE_VMWARE_PORT

2015-07-03 Thread Don Slutz
On 07/01/15 16:49, Konrad Rzeszutek Wilk wrote: On Sat, Jun 27, 2015 at 07:27:44PM -0400, Don Slutz wrote: From: Don Slutz This adds synchronization of the 6 vcpu registers (only 32bits of them) that vmport.c needs between Xen and QEMU. ... --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch

Re: [Xen-devel] [PATCH v12 2/8] xen: Add support for VMware cpuid leaves

2015-07-03 Thread Don Slutz
ttr_ranges; >> >> diff --git a/xen/include/asm-x86/hvm/hvm.h b/xen/include/asm-x86/hvm/hvm.h >> index 57f9605..a074afe 100644 >> --- a/xen/include/asm-x86/hvm/hvm.h >> +++ b/xen/include/asm-x86/hvm/hvm.h >> @@ -356,6 +356,12 @@ static inline unsigned long >&g

Re: [Xen-devel] Renaming Xen Project Hackathons

2015-05-12 Thread Don Slutz
de inflation that makes every meeting a >>> "summit" these days, >>> >> Well, why not "Xen Project Design Meeting" then? :-P > > I'd be happy with that. :) > > Tim. > Either is fine with me. -Don Slutz > > _

[Xen-devel] Ping [PATCH 1/1] xen-hvm: Add trace to ioreq

2015-05-13 Thread Don Slutz
On 04/30/15 14:27, Don Slutz wrote: > Signed-off-by: Don Slutz > (cherry picked from commit b72adbe7510d0a30053d32334665ee887bec9e43) > --- > trace-events | 7 +++ > xen-hvm.c| 21 + > 2 files changed, 28 insertions(+) > > diff --git a/tra

Re: [Xen-devel] [PATCH v9 07/13] tools: Add vmware_port support

2015-05-14 Thread Don Slutz
On 03/03/15 09:23, Ian Campbell wrote: > On Mon, 2015-02-16 at 18:05 -0500, Don Slutz wrote: > I do not see that I ever replied to this :( >> > +=item B >> > + >> > +Turns on or off the exposure of VMware port. This is known as >> > +vmport in QEMU.

[Xen-devel] [PATCH v10 09/10] Add xentrace to vmware_port

2015-05-14 Thread Don Slutz
Also added missing TRAP_DEBUG & VLAPIC. Signed-off-by: Don Slutz Acked-by: Ian Campbell --- v10: Added Acked-by: Ian Campbell Added back in the trace point calls. Why is cmd in this patch? Because the trace points use it. v9: Dropped unneed VMPORT_UNHANDLED, VMPORT_DECODE.

[Xen-devel] [PATCH v10 06/10] xen: Add ring 3 vmware_port support

2015-05-14 Thread Don Slutz
io in x86_emulate for VMware port Also adjust the emulation registers after doing a VMware backdoor operation. Add new routine hvm_emulate_one_gp() to be used by the #GP fault handler. Some of the best info is at: https://sites.google.com/site/chitchatvmback/backdoor Signed-off-by: Don Slutz

[Xen-devel] [PATCH v10 01/10] tools: Add vga=vmware

2015-05-14 Thread Don Slutz
This allows use of QEMU's VMware emulated video card Signed-off-by: Don Slutz --- v10: New at v10. Was part of "tools: Add vmware_hwver support" docs/man/xl.cfg.pod.5 | 2 +- tools/libxl/libxl.h | 6 ++ tools/libxl/libxl_dm.c | 8 tools/libxl/

[Xen-devel] [PATCH v10 05/10] xen: Add vmware_port support

2015-05-14 Thread Don Slutz
n unchanged. An open source example of using this is: http://open-vm-tools.sourceforge.net/ Which only uses "inl (%dx)". Also http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 Some of the best info is at: https://si

[Xen-devel] [PATCH v10 04/10] vmware: Add VMware provided include file.

2015-05-14 Thread Don Slutz
only has a comment and is provided so that backdoor_def.h can be used without change. Signed-off-by: Don Slutz Acked-by: Andrew Cooper --- v10: Add Acked-by: Andrew Cooper v9: Either the description is wrong, or the patch is stale. stale commit message -- fixed. I'd say a

[Xen-devel] [PATCH v10 07/10] tools: Add vmware_port support

2015-05-14 Thread Don Slutz
ID leaves for VMware (vmware_hwver >= 7). Note: vmware_port and nestedhvm cannot be specified at the same time. Signed-off-by: Don Slutz --- v10: If..." at the start of the sentence ... Also, why is 7 special? docs/man/xl.cfg.pod.5 | 16 +++- tools/libxl/libxl

[Xen-devel] [PATCH v10 03/10] tools: Add vmware_hwver support

2015-05-14 Thread Don Slutz
This is used to set xen_arch_domainconfig vmware_hw. It is set to the emulated VMware virtual hardware version. Currently 0, 3-4, 6-11 are good values. However the code only checks for == 0, != 0, or < 7. If non-zero then default VGA to VMware's VGA. Signed-off-by: Don Slutz

[Xen-devel] [PATCH v10 08/10] Add IOREQ_TYPE_VMWARE_PORT

2015-05-14 Thread Don Slutz
x27;s vmport code. The currently most useful VMware port support that QEMU has is the VMware mouse support. Xorg included a VMware mouse support that uses absolute mode. This make using a mouse in X11 much nicer. Signed-off-by: Don Slutz Acked-by: Ian Campbell --- v10: These literals should b

[Xen-devel] [PATCH v10 02/10] xen: Add support for VMware cpuid leaves

2015-05-14 Thread Don Slutz
line at end of file. Signed-off-by: Don Slutz Reviewed-by: Andrew Cooper --- v10: Did not add "Reviewed-by: Andrew Cooper " because of changes here to do things the new way. Reword comment message to reflect new way. v9: s/vmware_hw/vmware_hwver/i Change -EX

[Xen-devel] [PATCH v10 10/10] test_x86_emulator.c: Add tests for #GP usage

2015-05-14 Thread Don Slutz
ng, so eip should only change by 1. Signed-off-by: Don Slutz --- v10: More comments and simpler error checking. Dropped un-needed new routines. tools/tests/x86_emulator/test_x86_emulator.c | 189 +++ 1 file changed, 189 insertions(+) diff --git a/tools/tests/x8

[Xen-devel] [PATCH v10 00/10] Xen VMware tools support

2015-05-14 Thread Don Slutz
d access. Olaf Hering: Dropped changing of bios-strings. Still needs some documentation about this may be needed to do in a tool stack or set of commands. Boris Ostrovsky: Use svm_nextrip_insn_length() Looks like __get_instruction_length() does this, so switched to __get_instr

[Xen-devel] Status of VMware tools support (Was: Xen 4.6 Development Update (four months reminder))

2015-05-14 Thread Don Slutz
On 05/13/15 01:01, wei.l...@citrix.com wrote: > * VMware tools support (fair) > - Don Slutz > v10 of patch set posted. Should be able to move to ok. -Don Slutz ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xe

Re: [Xen-devel] [PATCH v10 01/10] tools: Add vga=vmware

2015-05-14 Thread Don Slutz
On 05/14/15 19:42, Andrew Cooper wrote: > On 15/05/2015 00:34, Don Slutz wrote: >> This allows use of QEMU's VMware emulated video card >> >> Signed-off-by: Don Slutz > > Nack. > > Qemu-trad is currently has remote code execution vulnerabilities in its >

Re: [Xen-devel] [PATCH] xen/public: Clarify xen_arch_domainconfig ABI statement

2015-05-20 Thread Don Slutz
On 05/20/15 09:10, Andrew Cooper wrote: > This structure is used by XEN_DOMCTL_createdomain, and is liable to be > modified going forwards. Explicitly state that it falls under the > XEN_DOMCTL_INTERFACE_VERSION. > Looks good to me. Reviewed-by: Don Slutz -Don Slutz >

Re: [Xen-devel] [PATCH] xen/x86: Don't unconditionally touch the hvm_domain union during domain construction

2015-05-20 Thread Don Slutz
p); > + > rc = create_perdomain_mapping(d, PERDOMAIN_VIRT_START, 0, NULL, > NULL); > +} > else if ( is_idle_domain(d) ) > rc = 0; > else > Looks good to me. Reviewed-by: Don Slutz -Don Slutz ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v10 01/10] tools: Add vga=vmware

2015-05-20 Thread Don Slutz
On 05/15/15 04:49, Ian Campbell wrote: > On Fri, 2015-05-15 at 00:42 +0100, Andrew Cooper wrote: >> On 15/05/2015 00:34, Don Slutz wrote: >>> This allows use of QEMU's VMware emulated video card >>> >>> Signed-off-by: Don Slutz >> >> Nack. &

Re: [Xen-devel] [PATCH v10 05/10] xen: Add vmware_port support

2015-05-20 Thread Don Slutz
On 05/19/15 16:23, Andrew Cooper wrote: > On 15/05/15 00:34, Don Slutz wrote: >> This includes adding is_vmware_port_enabled >> >> diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c >> index bc3d3a5..153048a 100644 >> --- a/xen/arch/x86/domain

Re: [Xen-devel] [PATCH v10 02/10] xen: Add support for VMware cpuid leaves

2015-05-20 Thread Don Slutz
On 05/19/15 16:02, Andrew Cooper wrote: > On 15/05/15 00:34, Don Slutz wrote: >> This is done by adding xen_arch_domainconfig vmware_hw. It is set to >> the VMware virtual hardware version. >> ... >> Signed-off-by: Don Slutz >> Reviewed-by: Andrew Cooper

Re: [Xen-devel] [PATCH v10 02/10] xen: Add support for VMware cpuid leaves

2015-05-20 Thread Don Slutz
duce the size of the patches. > You are relying on the fact that the toolstack > memset zero xen_arch_domainconfig to zero which is hidden in the maze of > the code (the memset is done on an upper container). > > It would be worth to

[Xen-devel] [PATCH v11 8/9] Add IOREQ_TYPE_VMWARE_PORT

2015-05-22 Thread Don Slutz
x27;s vmport code. The currently most useful VMware port support that QEMU has is the VMware mouse support. Xorg included a VMware mouse support that uses absolute mode. This make using a mouse in X11 much nicer. Signed-off-by: Don Slutz Acked-by: Ian Campbell --- v11: No change v10:

[Xen-devel] [PATCH v11 1/9] tools: Add vga=vmware

2015-05-22 Thread Don Slutz
This allows use of QEMU's VMware emulated video card NOTE: vga=vmware is not supported by device_model_version=qemu-xen-traditional Signed-off-by: Don Slutz --- v11: Dropped support for Qemu-trad. Also changed later patchs to not need this one. v10: New at v10. Was part of "

[Xen-devel] [PATCH v11 7/9] tools: Add vmware_port support

2015-05-22 Thread Don Slutz
ID leaves for VMware (vmware_hwver >= 7). Note: vmware_port and nestedhvm cannot be specified at the same time. Signed-off-by: Don Slutz --- v11: Dropped "If non-zero then default VGA to VMware's VGA" v10: If..." at the start of the sentence ... Also, why is 7 s

[Xen-devel] [PATCH v11 9/9] Add xentrace to vmware_port

2015-05-22 Thread Don Slutz
Also added missing TRAP_DEBUG & VLAPIC. Signed-off-by: Don Slutz Acked-by: Ian Campbell --- v11: No change v10: Added Acked-by: Ian Campbell Added back in the trace point calls. Why is cmd in this patch? Because the trace points use it. v9: Dropped unneed VMPORT_UNHAN

[Xen-devel] [PATCH v11 3/9] tools: Add vmware_hwver support

2015-05-22 Thread Don Slutz
This is used to set xen_arch_domainconfig vmware_hw. It is set to the emulated VMware virtual hardware version. Currently 0, 3-4, 6-11 are good values. However the code only checks for == 0, != 0, or < 7. Signed-off-by: Don Slutz --- v11: Dropped "If non-zero then default VGA to VMwa

[Xen-devel] [PATCH v11 5/9] xen: Add vmware_port support

2015-05-22 Thread Don Slutz
n unchanged. An open source example of using this is: http://open-vm-tools.sourceforge.net/ Which only uses "inl (%dx)". Also http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009458 Some of the best info is at: https://sites.

[Xen-devel] [PATCH v11 2/9] xen: Add support for VMware cpuid leaves

2015-05-22 Thread Don Slutz
line at end of file. Signed-off-by: Don Slutz Reviewed-by: Andrew Cooper --- v11: Adjust /* Disallow if vmware_hwver */ Newline after break; Added Reviewed-by: Andrew Cooper. It would be worth to add an explicit vmware_hwver = 0 in the libxl__arch_domain_prepare_config. Note: Ad

[Xen-devel] [PATCH v11 6/9] xen: Add ring 3 vmware_port support

2015-05-22 Thread Don Slutz
io in x86_emulate for VMware port Also adjust the emulation registers after doing a VMware backdoor operation. Add new routine hvm_emulate_one_gp() to be used by the #GP fault handler. Some of the best info is at: https://sites.google.com/site/chitchatvmback/backdoor Signed-off-by: Don Sl

  1   2   3   >