search for: copy_to_guest_offset

Displaying 13 results from an estimated 13 matches for "copy_to_guest_offset".

2007 Oct 23
6
[PATCH][cpufreq] Xen support for the ondemand governor [1/2] (hypervisor code)
...state.time[RUNSTATE_runnable] + + v->runstate.time[RUNSTATE_blocked] + + v->runstate.time[RUNSTATE_offline]; if ( v->is_running ) idletime += NOW() - v->runstate.state_entry_time; ret = -EFAULT; - if ( copy_to_guest_offset(idletimes, i, &idletime, 1) ) + if ( copy_to_guest_offset(idletimes, i, &idletime, 1) ) + goto out; + if ( copy_to_guest_offset(totaltimes, i, &totaltime, 1) ) goto out; } diff -r b4278beaf354 xen/include/public/platform....
2017 Oct 26
1
[PATCH for-next 7/9] coverage: introduce support for llvm profiling
...ILE_NUM_KINDS - 1, + }; + unsigned int off = 0; + +#define APPEND_TO_BUFFER(src, size) \ +({ \ + if ( off + size > *buf_size ) \ + return -ENOMEM; \ + copy_to_guest_offset(buffer, off, src, size); \ + off += size; \ +}) + APPEND_TO_BUFFER((char *)&header, sizeof(struct llvm_profile_header)); + APPEND_TO_BUFFER((char *)start_data, end_data - start_data); + APPEND_TO_BUFFER((char *)start_counters, end_counter...
2017 Oct 26
2
[PATCH for-next 0/9] LLVM coverage support for Xen
Hello, The following patch series enables LLVM coverage support for the Xen hypervisor. This first patches are a re-organization of the gcov support, in order to make the support generic for all coverage technologies. This is mostly a name change from gcov -> cov in several places and files, together with the addition of a Kconfig option in order to enable LLVM coverage. Patch 7 introduces
2012 May 25
0
[PATCH 3/3] gnttab: cleanup
...tab_setup_table( op.status = GNTST_okay; for ( i = 0; i < op.nr_frames; i++ ) { - gmfn = gnttab_shared_gmfn(d, d->grant_table, i); + gmfn = gnttab_shared_gmfn(d, gt, i); /* Grant tables cannot be shared */ BUG_ON(SHARED_M2P(gmfn)); (void)copy_to_guest_offset(op.frame_list, i, &gmfn, 1); } out3: - spin_unlock(&d->grant_table->lock); + spin_unlock(&gt->lock); out2: rcu_unlock_domain(d); out1: @@ -1430,7 +1434,7 @@ gnttab_prepare_for_transfer( goto fail; } - if ( unlikely(ref >= nr_grant_e...
2006 Sep 29
4
[PATCH 4/6] xen: export NUMA topology in physinfo hcall
.../ + get_xen_guest_handle(chunks, sysctl->u.physinfo.memory_chunks); + + /* if it is set, fill out memory chunk array */ + if ( chunks != NULL ) + for_each_online_node(i) + { + /* copy memory chunk structs to guest */ + if ( copy_to_guest_offset(sysctl->u.physinfo.memory_chunks, i, + &(node_data[i]), 1) ) { + ret = -EFAULT; + break; + } + } + + /* set number of notes */ + pi->nr_nodes = num_online_nodes(); + +...
2011 Oct 25
5
[PATCH] pm : provide CC7/PC2 residency
...ot;, + hw_res.pc2, hw_res.pc3, hw_res.pc6, hw_res.pc7); + printk("CC3[%"PRId64"] CC6[%"PRId64"] CC7[%"PRId64"]\n", + hw_res.cc3, hw_res.cc6,hw_res.cc7); } static char* acpi_cstate_method_name[] = @@ -1057,11 +1072,13 @@ copy_to_guest_offset(stat->residencies, 0, &res, 1) ) return -EFAULT; + stat->pc2 = 0; stat->pc3 = 0; stat->pc6 = 0; stat->pc7 = 0; stat->cc3 = 0; stat->cc6 = 0; + stat->cc7 = 0; return 0; } @@ -1086,11 +...
2013 Dec 06
36
[V6 PATCH 0/7]: PVH dom0....
Hi, V6: The only change from V5 is in patch #6: - changed comment to reflect autoxlate - removed a redundant ASSERT - reworked logic a bit so that get_page_from_gfn() is called with NULL for p2m type as before. arm has ASSERT wanting it to be NULL. Tim: patch 4 needs your approval. Daniel: patch 5 needs your approval. These patches implement PVH dom0. Patches 1 and 2
2012 Dec 12
2
[PATCH v7 1/2] xen: unify domain locking in domctl code
These two patches were originally part of the XSM series that I have posted, and remain prerequisites for that series. However, they are independent of the XSM changes and are a useful simplification regardless of the use of XSM. The Acked-bys on these patches were provided before rebasing them over the copyback changes in 26268:1b72138bddda, which had minor conflicts that I resolved. [PATCH
2013 Nov 06
0
[PATCH v5 5/6] xen/arm: Implement hypercall for dirty page tracing
...( guest_handle_is_null(sc->dirty_bitmap) ) + { + peek = 0; + } + else + { + spin_lock(&d->arch.dirty.lock); + for ( i = 0; i < d->arch.dirty.bitmap_pages; ++i ) + { + int j = 0; + uint8_t *bitmap; + copy_to_guest_offset(sc->dirty_bitmap, i * PAGE_SIZE, + d->arch.dirty.bitmap[i], + bitmap_size < PAGE_SIZE ? bitmap_size : + PAGE_SIZE); + bitmap_size -= PAGE_SIZE; + +...
2013 Feb 07
5
[PATCH v8] gcov: Coverage support
Updated set of patches for coverage. Changes: - change copyright lines - use gcov: instead of cover: in commit comment - use #ifdef in xen/common/sysctl.c instead of dummy inline function - added base documentation in docs/misc - added -h option to xencov
2011 Aug 15
36
expose MWAIT to dom0
There''re basically two methods to enter a given C-state: legacy (hlt + I/O read), and native(using mwait). MWAIT is always preferred when both underlying CPU and OS support, which is a more efficient way to conduct C-state transition. Xen PM relies on Dom0 to parse ACPI Cx/Px information, which involves one step to notify BIOS about a set of capabilities supported by OSPM. One capability
2012 Jan 09
39
[PATCH v4 00/25] xen: ARMv7 with virtualization extensions
Hello everyone, this is the fourth version of the patch series that introduces ARMv7 with virtualization extensions support in Xen. The series allows Xen and Dom0 to boot on a Cortex-A15 based Versatile Express simulator. See the following announce email for more informations about what we are trying to achieve, as well as the original git history: See
2011 Dec 06
57
[PATCH RFC 00/25] xen: ARMv7 with virtualization extensions
Hello everyone, this is the very first version of the patch series that introduces ARMv7 with virtualization extensions support in Xen. The series allows Xen and Dom0 to boot on a Cortex-A15 based Versatile Express simulator. See the following announce email for more informations about what we are trying to achieve, as well as the original git history: See